blob: ab3c39faa43615761fe58d8558e739bba57d2ebe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
{% extends "base.html" %}
{% block content %}
<form id="ae-stats-refresh">
{% comment %}
<input type="checkbox" name="refresh" value="refresh" id="ae-stats-refresh"><label for="ae-stats-refresh">Automatically update every 30 seconds</label><br>
{% endcomment %}
<button id="ae-refresh">Refresh Now</button>
</form>
<div class="g-section g-tpl-33-67">
<div class="g-unit g-first">
{# RPC stats table begin #}
<div class="ae-table-wrapper-left">
<div class="ae-table-title">
<div class="g-section g-tpl-50-50 g-split">
<div class="g-unit g-first"><h2>RPC Stats</h2></div>
<div id="ae-rpc-expand-all" class="g-unit"></div>
</div>
</div>
<table cellspacing="0" cellpadding="0" class="ae-table ae-stripe" id="ae-table-rpc">
<colgroup>
<col id="ae-rpc-label-col">
<col id="ae-rpc-stats-col">
</colgroup>
<thead>
<tr>
<th>RPC</th>
<th>Count</th>
</tr>
</thead>
{% for item in allstats_by_count %}
<tbody>
<tr>
<td>
<span class="goog-inline-block ae-zippy ae-zippy-expand" id="ae-rpc-expand-{{forloop.counter}}"></span>
{{item.0|escape}}
</td>
<td>{{item.1}}</td>
</tr>
</tbody>
<tbody class="ae-rpc-detail" id="ae-rpc-expand-{{forloop.counter}}-detail">
{% for subitem in item.2 %}
<tr>
<td class="rpc-req">{{subitem.0|escape}}</td>
<td>{{subitem.1}}</td>
</tr>
{% endfor %}
</tbody>
{% endfor %}
</table>
</div>
{# RPC stats table end #}
</div>
<div class="g-unit">
{# Path stats table begin #}
<div class="ae-table-wrapper-right">
<div class="ae-table-title">
<div class="g-section g-tpl-50-50 g-split">
<div class="g-unit g-first"><h2>Path Stats</h2></div>
<div class="g-unit" id="ae-path-expand-all"></div>
</div>
</div>
<table cellspacing="0" cellpadding="0" class="ae-table" id="ae-table-path">
<colgroup>
<col id="ae-path-label-col">
<col id="ae-path-rpcs-col">
<col id="ae-path-reqs-col">
<col id="ae-path-stats-col">
</colgroup>
<thead>
<tr>
<th>Path</th>
<th>#RPCs</th>
<th>#Requests</th>
<th>Most Recent requests</th>
</tr>
</thead>
{% for item in pathstats_by_count %}
<tr>
<td>
<span class="goog-inline-block ae-zippy ae-zippy-expand" id="ae-path-expand-{{forloop.counter}}"></span>
{{item.0|escape}}
</td>
<td>
{{item.1}}
</td>
<td>{{item.2}}</td>
<td>
{% for index in item.3 %}
{% if index %} <a href="#req-{{index}}">({{index}})</a> {% else %} ... {% endif %}
{% endfor %}
</td>
<tbody class="path path-{{forloop.counter}}">
{% for subitem in item.4 %}
<tr>
<td class="rpc-req">{{subitem.0|escape}}</td>
<td>{{subitem.1|escape}}</td>
<td></td>
</tr>
{% endfor %}
</tbody>
{% endfor %}
</table>
</div>
{# Path stats table end #}
</div>
</div>
<div id="ae-req-history">
<div class="ae-table-title">
<div class="g-section g-tpl-50-50 g-split">
<div class="g-unit g-first"><h2>Requests History</h2></div>
<div class="g-unit" id="ae-request-expand-all"></div>
</div>
</div>
<table cellspacing="0" cellpadding="0" class="ae-table" id='ae-table-request'>
<colgroup>
<col id="ae-reqs-label-col">
</colgroup>
<thead>
<tr>
<th colspan="2">Request</th>
</tr>
</thead>
{% for r in requests %}
<tbody>
<tr>
<td colspan="2" class="ae-hanging-indent">
<span class="goog-inline-block ae-zippy ae-zippy-expand" id="ae-path-requests-{{forloop.counter}}"></span>
({{forloop.counter}})
<a name="req-{{forloop.counter}}" href="details?time={{r.start_timestamp_milliseconds}}" class="ae-stats-request-link">
{{r.start_time_formatted}}
"{{r.http_method|escape}}
{{r.http_path|escape}}{{r.http_query|escape}}"
{{r.http_status}}
</a>
real={{r.duration_milliseconds}}ms
cpu={{r.processor_milliseconds}}ms
api={{r.api_milliseconds}}ms
overhead={{r.overhead_walltime_milliseconds}}ms
({{r.combined_rpc_count}} RPC{{r.combined_rpc_count|pluralize}})
</td>
</tr>
</tbody>
<tbody class="reqon" id="ae-path-requests-{{forloop.counter}}-tbody">
{% for item in r.rpc_stats_list %}
<tr>
<td class="rpc-req">{{item.service_call_name}}</td>
<td>{{item.total_amount_of_calls}}</td>
</tr>
{% endfor %}
</tbody>
{% endfor %}
</table>
</div>
{% endblock %}
{% block tailstuff %}
<script>
var z1 = new ae.Stats.MakeZippys('ae-table-rpc', 'ae-rpc-expand-all');
var z2 = new ae.Stats.MakeZippys('ae-table-path', 'ae-path-expand-all');
var z3 = new ae.Stats.MakeZippys('ae-table-request', 'ae-request-expand-all');
</script>
{% endblock %}
|