From dd26403b10cf1fa86888c60b80f89e42f999cd22 Mon Sep 17 00:00:00 2001 From: Fabien Bourigault Date: Tue, 2 May 2017 12:21:58 +0200 Subject: [PATCH] display stack duration in profiler --- Resources/public/style/httplug.css | 5 +++++ Resources/views/webprofiler.html.twig | 1 + 2 files changed, 6 insertions(+) diff --git a/Resources/public/style/httplug.css b/Resources/public/style/httplug.css index a7a06141..318d6ec4 100644 --- a/Resources/public/style/httplug.css +++ b/Resources/public/style/httplug.css @@ -80,6 +80,11 @@ font-size: 12px; } +.httplug-duration { + min-width: 6ch; + text-align:center; +} + /** * HTTP method colors from swagger-ui. */ diff --git a/Resources/views/webprofiler.html.twig b/Resources/views/webprofiler.html.twig index 10001f74..045fd1d6 100644 --- a/Resources/views/webprofiler.html.twig +++ b/Resources/views/webprofiler.html.twig @@ -94,6 +94,7 @@ {{ stack.requestTarget }}
+ {{ stack.duration|number_format }} ms {% if stack.responseCode >= 400 and stack.responseCode <= 599 %} {{ stack.responseCode }} {% elseif stack.responseCode >= 300 and stack.responseCode <= 399 %}