-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstats_table.html
33 lines (33 loc) · 1.05 KB
/
stats_table.html
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
<div class="stats-table" id="{{result.title}}">
<h3>{{result.title}}</h3>
<div class="summary">
<span>Sample window: {{result.time_elapsed|floatformat:"0"}} seconds</span>
{% if show_everything %}
<span>Total samples: {{result.total_samples}}</span>
<span>Unique keys: {{result.unique_samples}}</span>
<span>Overall rate: {{result.overall_rate|floatformat:"-4"}}/sec</span>
{% endif %}
</div>
{% if result.unique_samples %}
<table>
<tr align="center">
<th align="left">{{result.key_name}}</th>
<th>Samples</th>
<th>Frequency</th>
<th>Min</th>
<th>Max</th>
<th>Average</th>
</tr>
{% for sample in result.sample_objects|dictsortreversed:"frequency"|slice:":40" %}
<tr align="right">
<td align="left">{{sample.key|escape}}</td>
<td>{{sample.count}}</td>
<td>{{sample.frequency|floatformat:"-2"}}/sec</td>
<td>{{sample.min|floatformat:"-2"}}</td>
<td>{{sample.max|floatformat:"-2"}}</td>
<td>{{sample.average|floatformat:"-2"}} {{result.value_units}}</td>
</tr>
{% endfor %}
</table>
{% endif %}
</div>