Skip to content

Commit dace014

Browse files
authored
Merge pull request #157 from fbourigault/display-stack-duration-in-profiler
Display stack duration in profiler
2 parents 79070d6 + dd26403 commit dace014

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Resources/public/style/httplug.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@
8080
font-size: 12px;
8181
}
8282

83+
.httplug-duration {
84+
min-width: 6ch;
85+
text-align:center;
86+
}
87+
8388
/**
8489
* HTTP method colors from swagger-ui.
8590
*/

Resources/views/webprofiler.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
<span class="httplug-target">{{ stack.requestTarget }}</span>
9595
</div>
9696
<div>
97+
<span class="label httplug-duration">{{ stack.duration|number_format }} ms</span>
9798
{% if stack.responseCode >= 400 and stack.responseCode <= 599 %}
9899
<span class="label status-error">{{ stack.responseCode }}</span>
99100
{% elseif stack.responseCode >= 300 and stack.responseCode <= 399 %}

0 commit comments

Comments
 (0)