{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set time = collector.templatecount ? '%0.0f'|format(collector.time) : 'n/a' %} {% set icon %} {{ include('@WebProfiler/Icon/twig.svg') }} {{ time }} ms {% endset %} {% set text %}
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 %} {{ include('@WebProfiler/Icon/twig.svg') }} Twig {% endblock %} {% block panel %} {% if collector.templatecount == 0 %}

Twig

No Twig templates were rendered for this request.

{% 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
{{ include('@WebProfiler/Icon/twig.svg') }} {% if link %} {{ template }}
{{ file|file_relative|default(file) }}
{% else %} {{ template }} {% endif %}
{{ count }}

Rendering Call Graph

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