From 643ea59ee824e0c0b966a77764606dba1b43c154 Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 10 Apr 2019 20:20:35 +0200 Subject: [PATCH] Display pre-template load time in footer. --- templates/_layout/footer.twig | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/_layout/footer.twig b/templates/_layout/footer.twig index 8141485d..325454b8 100644 --- a/templates/_layout/footer.twig +++ b/templates/_layout/footer.twig @@ -15,6 +15,7 @@ {% if constant('MSZ_DEBUG') or current_user.user_id|default(0) == 1 %} / SQL Queries: {{ sql_query_count()|number_format }} / Took: {{ startup_time()|number_format(5) }} seconds + / Load: {{ (startup_time() - startup_time(constant('MSZ_TPL_RENDER')))|number_format(5) }} seconds / Render: {{ startup_time(constant('MSZ_TPL_RENDER'))|number_format(5) }} seconds {% endif %}