{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block head %} {{ parent() }} {% endblock %} {% block toolbar %} {% set time = collector.templatecount ? '%0.0f'|format(collector.time) : 'n/a' %} {% set icon %} {{ source('@WebProfiler/Icon/twig.svg') }} {{ time }} ms {% endset %} {% set text %} {% set template = collector.templates|keys|first %} {% set file = collector.templatePaths[template]|default(false) %} {% set link = file ? file|file_link(1) : false %}
Entry View {% if link %} {{ template }} {% else %} {{ template }} {% endif %}
Render Time {{ time }} ms
Template Calls {{ collector.templatecount }}
Block Calls {{ collector.blockcount }}
Macro Calls {{ collector.macrocount }}
{% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url }) }} {% endblock %} {% block menu %} {{ source('@WebProfiler/Icon/twig.svg') }} Twig {% endblock %} {% block panel %} {% if collector.templatecount == 0 %}

Twig

No Twig templates were rendered.

{% else %}

Twig Metrics

{{ '%0.0f'|format(collector.time) }} ms Render time
{{ collector.templatecount }} Template calls
{{ collector.blockcount }} Block calls
{{ collector.macrocount }} Macro calls

Render time includes sub-requests rendering time (if any).

Rendered Templates

{% for template, count in collector.templates %} {% set file = collector.templatePaths[template]|default(false) %} {% set link = file ? file|file_link(1) : false %} {% endfor %}
Template Name & Path Render Count
{% if link %} {{ template }} {{ file|file_relative|default(file) }} {% else %} {{ template }} {% endif %} {{ count }}

Rendering Call Graph

{{ collector.htmlcallgraph }}
{% endif %} {% endblock %}