{%- extends '@WebProfiler/Profiler/layout.html.twig' -%} {%- import _self as helper -%} {%- block toolbar -%} {%- set icon -%} {{- include('@JMSSerializer/icon.svg') }} S: {{- collector.runs(1)|length }} D: {{- collector.runs(2)|length }} {% if collector.instance != 'default' %} {{- collector.instance -}} {% endif %} {%- endset -%} {%- set text -%}
Serializations {{ collector.runs(1)|length }}
Deserializations {{ collector.runs(2)|length }}
Listeners {{ collector.getNumListeners('called') }}
Handlers {{ collector.getNumHandlers('called') }}
Metadata {{ collector.loadedMetadata|length }}
{%- endset -%} {%- include '@WebProfiler/Profiler/toolbar_item.html.twig' with { 'link': profiler_url } -%} {%- endblock -%} {%- block head -%} {{ parent() }} {%- endblock -%} {%- block menu -%} {# This left-hand menu appears when using the full-screen profiler. #} {% set total = (collector.runs(1)|length) + (collector.runs(2)|length) %} {{ include('@JMSSerializer/icon.svg') }} JMS Serializer {% if collector.instance != 'default' %}
({{- collector.instance -}})
{% endif %}
{{ (collector.runs(1)|length) }} + {{ (collector.runs(2)|length) }}
{%- endblock -%} {%- block panel -%}

JMS Serializer {% if collector.instance != 'default' %} ({{- collector.instance -}}) {% endif %}

{{- collector.runs(1)|length }} Serializations
{{- collector.runs(2)|length }} Deserializations
{{- collector.triggeredEvents.count }} Triggered event listeners
{{- collector.triggeredEvents.duration|round(2) }} ms Triggered event listeners (time)
{{ helper.render_table_runs(collector.runs(1), 'Serializations') }} {{ helper.render_table_runs(collector.runs(2), 'Deserializations') }}

Events {{ collector.triggeredListeners|length }} ({{ collector.getNumListeners('called') }} listeners)

Triggered event listeners

{%- include '@JMSSerializer/Collector/events.html.twig' -%}

Handlers {{ collector.triggeredHandlers|length }} ({{ collector.getNumHandlers('called') }} types)

Triggered event handlers

{%- include '@JMSSerializer/Collector/handlers.html.twig' -%}

Metadata {{- collector.loadedMetadata|length -}}

Loaded metadata

{%- include '@JMSSerializer/Collector/metadata.html.twig' -%}
{%- endblock -%} {%- macro render_table_runs(runs, mode) -%} {%- if (runs|length)>0 -%}

{{ mode }}

{%- for run in runs -%} {%- endfor -%}
Type
{{ dump(run.type) }}
{%- endif -%} {%- endmacro -%}