We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abfa3ee commit 3e9780dCopy full SHA for 3e9780d
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig
@@ -14,9 +14,10 @@
14
} %}
15
{% endif %}
16
17
-{% set has_time_events = collector.events|length > 0 %}
18
19
{% block toolbar %}
+ {% set has_time_events = collector.events|length > 0 %}
20
+
21
{% set total_time = has_time_events ? '%.0f'|format(collector.duration) : 'n/a' %}
22
{% set initialization_time = collector.events|length ? '%.0f'|format(collector.inittime) : 'n/a' %}
23
{% set status_color = has_time_events and collector.duration > 1000 ? 'yellow' : '' %}
@@ -49,6 +50,7 @@
49
50
{% endblock %}
51
52
{% block panel %}
53
54
<h2>Performance metrics</h2>
55
56
<div class="metrics">
0 commit comments