{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% set icon %} {{ include('@WebProfilerModule/debug/dataCollector/Icon/smarty.svg') }} {{ collector.totalExecutionTime is defined ? collector.totalExecutionTime : 'n/a' }} ms {% set text %}
Render Time {{ collector.totalExecutionTime is defined ? collector.totalExecutionTime : 'n/a' }} ms
Template Calls {{ collector.templatecount }}
{% endset %} {% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: true, name: 'smarty', status: '', block_attrs: 'title=""' }) }} {% endblock %} {% block menu %} {{ include('@WebProfilerModule/debug/dataCollector/Icon/smarty.svg') }} Smarty {% endblock %} {% block panel %} {% if collector.templatecount == 0 %}

Smarty

No smarty templates were rendered for this request.

{% else %}

Smarty Metrics

{{ collector.totalExecutionTime is defined ? collector.totalExecutionTime : 'n/a' }} ms Render time
{{ collector.templatecount }} Template calls

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

Rendered Templates

{% for template in collector.templates %} {%- set file = template.name -%} {%- set link = file ? file|file_link(1) : false -%} {% endfor %}
Template Name & Path Render time
{{ include('@WebProfilerModule/debug/dataCollector/Icon/smartyColor.svg') }} {% if link %} {{ template.name }}
{{ file|file_relative|default(file) }}
{% else %} {{ template.name }} {% endif %}
{{ template.executionTime }}
{% endif %} {% endblock %}