Skip to content

Commit d8dbffa

Browse files
committed
[bundle] profile improvements.
1 parent a92eaef commit d8dbffa

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pkg/enqueue-bundle/Resources/views/Profiler/panel.html.twig

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@
2525
<tr>
2626
<td>{{ loop.index }}</td>
2727
<td>{{ sentMessage.topic }}</td>
28-
<td><pre>{{ collector.prettyPrintMessage(sentMessage.body)|raw }}</pre></td>
28+
<td style="width: 70%">
29+
<span class="metadata">
30+
<span>{{ sentMessage.body[0:40] }}... </span><a class="btn btn-link text-small sf-toggle" data-toggle-selector="#message-body-{{ loop.index }}" data-toggle-alt-content="Hide trace">Show trace</a>
31+
32+
<div id="message-body-{{ loop.index }}" class="context sf-toggle-content sf-toggle-hidden">
33+
{{ profiler_dump(sentMessage.body, maxDepth=1) }}
34+
</div>
35+
</span>
2936
<td><span title="{{ sentMessage.priority }}">{{ collector.prettyPrintPriority(sentMessage.priority) }}</span></td>
3037
</tr>
3138
{% endfor %}

0 commit comments

Comments
 (0)