|
1 | 1 | {% extends '@WebProfiler/Profiler/layout.html.twig' %}
|
2 | 2 |
|
| 3 | +{% block toolbar %} |
| 4 | + {% if collector.callsCount > 0 %} |
| 5 | + {% set icon %} |
| 6 | + {{ source('@WebProfiler/Icon/workflow.svg') }} |
| 7 | + <span class="sf-toolbar-value">{{ collector.callsCount }}</span> |
| 8 | + {% endset %} |
| 9 | + {% set text %} |
| 10 | + <div class="sf-toolbar-info-piece"> |
| 11 | + <b>Workflow Calls</b> |
| 12 | + <span>{{ collector.callsCount }}</span> |
| 13 | + </div> |
| 14 | + {% endset %} |
| 15 | + |
| 16 | + {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }} |
| 17 | + {% endif %} |
| 18 | +{% endblock %} |
| 19 | + |
3 | 20 | {% block menu %}
|
4 | 21 | <span class="label {{ collector.workflows|length == 0 ? 'disabled' }}">
|
5 | 22 | <span class="icon">
|
|
45 | 62 | });
|
46 | 63 | </script>
|
47 | 64 |
|
48 |
| - <h2>Definitions</h2> |
49 | 65 | <div class="sf-tabs js-tabs">
|
50 | 66 | {% for name, data in collector.workflows %}
|
51 | 67 | <div class="tab">
|
52 |
| - <h3 class="tab-title">{{ name }}</h3> |
| 68 | + <h2 class="tab-title">{{ name }}{% if data.calls|length %} ({{ data.calls|length }}){% endif %}</h2> |
| 69 | + |
53 | 70 | <div class="tab-content">
|
| 71 | + <h3>Definition</h3> |
54 | 72 | <pre class="sf-mermaid">
|
55 | 73 | {{ data.dump|raw }}
|
56 | 74 | </pre>
|
| 75 | + |
| 76 | + <h3>Calls</h3> |
| 77 | + <table> |
| 78 | + <thead> |
| 79 | + <tr> |
| 80 | + <th>#</th> |
| 81 | + <th>Call</th> |
| 82 | + <th>Args</th> |
| 83 | + <th>Return</th> |
| 84 | + <th>Exception</th> |
| 85 | + <th>Duration</th> |
| 86 | + </tr> |
| 87 | + </thead> |
| 88 | + <tbody> |
| 89 | + {% for call in data.calls %} |
| 90 | + <tr> |
| 91 | + <td class="font-normal text-small text-muted nowrap">{{ loop.index }}</td> |
| 92 | + <td> |
| 93 | + <code>{{ call.method }}()</code> |
| 94 | + {% if call.previousMarking ?? null %} |
| 95 | + <hr /> |
| 96 | + Previous marking: |
| 97 | + {{ profiler_dump(call.previousMarking) }} |
| 98 | + {% endif %} |
| 99 | + </td> |
| 100 | + <td> |
| 101 | + {{ profiler_dump(call.args) }} |
| 102 | + </td> |
| 103 | + <td> |
| 104 | + {% if call.return is defined %} |
| 105 | + {% if call.return is same as true %} |
| 106 | + <code>true</code> |
| 107 | + {% elseif call.return is same as false %} |
| 108 | + <code>false</code> |
| 109 | + {% else %} |
| 110 | + {{ profiler_dump(call.return) }} |
| 111 | + {% endif %} |
| 112 | + {% endif %} |
| 113 | + </td> |
| 114 | + <td> |
| 115 | + {% if call.exception is defined %} |
| 116 | + {{ profiler_dump(call.exception) }} |
| 117 | + {% endif %} |
| 118 | + </td> |
| 119 | + <td> |
| 120 | + {{ call.duration }}ms |
| 121 | + </td> |
| 122 | + </tr> |
| 123 | + {% endfor %} |
| 124 | + </tbody> |
| 125 | + </table> |
57 | 126 | </div>
|
58 | 127 | </div>
|
59 | 128 | {% endfor %}
|
|
0 commit comments