{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% import _self as helper %} {% block toolbar %} {% if collector.count > 0 %} {% set icon %} {{ include('@Mercure/Icon/mercure.svg') }} {{ collector.count }} {% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: 'mercure' }) }} {% endif %} {% endblock %} {% block menu %} {{ include('@Mercure/Icon/mercure.svg') }} Mercure {% endblock %} {% block panel %} {% import _self as helper %}

Messages

{% if collector.count == 0 %}

No messages have been collected.

{% else %}
{% for hub, publisher in collector.publishers %}

{{ hub }}{{ publisher.count }}

{{ '%.0f'|format(publisher.duration) }} ms Total execution time
{{ '%.2f'|format(publisher.memory / 1024 / 1024) }} MB Peak memory usage
{% for i, message in publisher.messages %} {% endfor %}
# Time Memory Topics Data Private ID Type Retry
{{ i + 1 }} {{ '%.0f'|format(message.duration) }} ms {{ '%.2f'|format(message.memory / 1024 / 1024) }} MB {{ message.object.topics|join(',') }} {{ dump(message.object.data) }} {{ dump(message.object.private) }} {{ message.object.id }} {{ message.object.type }} {{ message.object.retry }}
{% endfor %}
{% endif %} {% endblock %}