@@ -3,41 +3,47 @@ <h4>{{ templates|length }} {% trans 'calls to Template.render()' %}</h4>
3
3
< div >
4
4
< table >
5
5
< colgroup >
6
+ < col style ="width:1% " />
6
7
< col style ="width:5% " />
7
8
< col style ="width:10% " />
8
- < col style ="width:1% " />
9
9
< col style ="width:60% " />
10
10
< col style ="width:5% " />
11
11
</ colgroup >
12
12
< thead >
13
13
< tr >
14
+ < th > </ th >
14
15
< th > {% trans 'Stack Level' %}</ th >
15
16
< th > {% trans 'Template Name' %}</ th >
16
- < th > {% trans 'Trace' %}</ th >
17
17
< th > {% trans 'Timeline' %}</ th >
18
18
< th > {% trans 'Time (ms)' %}</ th >
19
19
</ tr >
20
20
</ thead >
21
21
< tbody >
22
22
{% for template in templates %}
23
- < tr class ="{% cycle 'djDebugOdd' 'djDebugEven' %} ">
23
+ < tr class ="{% cycle 'djDebugOdd' 'djDebugEven' %} " id ="profileMain_{{ forloop.counter }} ">
24
+ < td class ="djdt-toggle ">
25
+ < button type ="button " class ="djToggleSwitch " data-toggle-name ="profileMain " data-toggle-id ="{{ forloop.counter }} "> +</ button >
26
+ </ td >
24
27
< td >
25
28
< div style ="background-color: {{ template.color.bg }}; color: {{ template.color.text }}; width: {{ template.level }}px; margin-right: 4px; padding-left: 2px; "> {{ template.level }}</ div >
26
29
</ td >
27
30
< td > {{ template.name }}</ td >
28
- < td >
29
- < a href ="javascript:$('.timeline_toggle_{{ forloop.counter }}').toggle(); ">
30
- < div class ="timeline_toggle_{{ forloop.counter }} "> ►</ div >
31
- < div class ="timeline_toggle_{{ forloop.counter }} " style ="display: none; "> ▼</ div >
32
- </ a >
33
- </ td >
34
31
< td class ="timeline ">
35
32
< div class ="djDebugTimeline " style ="position:relative; ">
36
33
< div class ="djDebugLineChart " style ="margin-left: {{ template.offset_p|stringformat:'f' }}%; ">
37
34
< div title ="Runtime {{ template.relative_start|floatformat:2 }} - {{ template.relative_end|floatformat:2 }} ms " style ="min-width: 1px; width: {{ template.rel_duration_p|stringformat:'f' }}%; background-color: {{ template.color.bg }}; ">
38
35
</ div >
39
36
</ div >
40
- < div style ="height: 200px; position:relative; display: none; " class ="timeline_toggle_{{ forloop.counter }} ">
37
+ </ div >
38
+ </ td >
39
+ < td > {{ template.time|floatformat }}</ td >
40
+ </ tr >
41
+ < tr class ="djToggleDetails_{{ forloop.counter }} djUnselected " id ="sqlDetails_{{ forloop.counter }} ">
42
+ < td > </ td >
43
+ < td > </ td >
44
+ < td > </ td >
45
+ < td >
46
+ < div style ="height: 200px; position:relative; " class ="timeline_toggle_{{ forloop.counter }} djToggleDetails_{{ forloop.counter }} djSelected " id ="sqlDetails_{{ forloop.counter }} ">
41
47
{% for time_item in template.processing_timeline %}
42
48
< span title ="{{ time_item.name }}
43
49
Runtime {{ time_item.relative_start|floatformat:2 }} - {{ time_item.relative_end|floatformat:2 }} ms
@@ -56,9 +62,8 @@ <h4>{{ templates|length }} {% trans 'calls to Template.render()' %}</h4>
56
62
"> </ span >
57
63
{% endfor %}
58
64
</ div >
59
- </ div >
60
- </ td >
61
- < td > {{ template.time|floatformat }}</ td >
65
+ </ td >
66
+ < td > </ td >
62
67
</ tr >
63
68
{% endfor %}
64
69
</ tbody >
0 commit comments