File tree Expand file tree Collapse file tree 2 files changed +19
-11
lines changed
src/Symfony/Bundle/WebProfilerBundle/Resources/views Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 60
60
<span class =" label" >Symfony initialization</span >
61
61
</div >
62
62
63
+ {% if profile .collectors .memory %}
64
+ <div class =" metric" >
65
+ <span class =" value" >{{ ' %.2f' | format (profile .collectors .memory .memory / 1024 / 1024 ) }} <span class =" unit" >MB</span ></span >
66
+ <span class =" label" >Peak memory usage</span >
67
+ </div >
68
+ {% endif %}
69
+
63
70
{% if profile .children | length > 0 %}
71
+ <div class =" metric-divider" ></div >
72
+
64
73
<div class =" metric" >
65
74
<span class =" value" >{{ profile .children | length }}</span >
66
- <span class =" label" >Sub-Requests </span >
75
+ <span class =" label" >Sub-Request{{ profile . children | length > 1 ? ' s ' }} </span >
67
76
</div >
68
77
69
78
{% set subrequests_time = 0 %}
73
82
74
83
<div class =" metric" >
75
84
<span class =" value" >{{ subrequests_time }} <span class =" unit" >ms</span ></span >
76
- <span class =" label" >Sub-Requests time</span >
77
- </div >
78
- {% endif %}
79
-
80
- {% if profile .collectors .memory %}
81
- <div class =" metric" >
82
- <span class =" value" >{{ ' %.2f' | format (profile .collectors .memory .memory / 1024 / 1024 ) }} <span class =" unit" >MB</span ></span >
83
- <span class =" label" >Peak memory usage</span >
85
+ <span class =" label" >Sub-Request{{ profile .children | length > 1 ? ' s' }} time</span >
84
86
</div >
85
87
{% endif %}
86
88
</div >
Original file line number Diff line number Diff line change @@ -250,12 +250,12 @@ table tbody ul {
250
250
{# Metrics
251
251
------------------------------------------------------------------------- #}
252
252
.metrics {
253
- margin: 1em 0;
253
+ margin: 1em 0 0 ;
254
254
overflow: auto;
255
255
}
256
256
.metrics .metric {
257
257
float: left;
258
- margin-right: 1em;
258
+ margin: 0 1em 1em 0 ;
259
259
}
260
260
261
261
.metric {
@@ -310,6 +310,12 @@ table tbody ul {
310
310
vertical-align: middle;
311
311
}
312
312
313
+ .metric-divider {
314
+ float: left;
315
+ margin: 0 1em;
316
+ min-height: 1px; {# required to apply 'margin' to an empty 'div' #}
317
+ }
318
+
313
319
{# Cards
314
320
------------------------------------------------------------------------- #}
315
321
.card {
You can’t perform that action at this time.
0 commit comments