Add call summaries by type and key in cache profiler

This commit is contained in:
Thibaud Fabre
2016-01-20 12:09:39 +01:00
parent f5ef76168f
commit 2b7d5e382f
5 changed files with 124 additions and 2 deletions

View File

@@ -80,6 +80,69 @@
</tr>
</table>
<h3>Hit miss summary</h3>
<table>
<thead>
<tr>
<th>Call stat</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Hits</th>
<td>{{ collector.callSummary['hits'] }}</td>
</tr>
<tr>
<th scope="row">Misses</th>
<td>{{ collector.callSummary['misses'] }}</td>
</tr>
<tr>
<th scope="row">Total</th>
<td>{{ collector.callSummary['calls'] }}</td>
</tr>
</tbody>
</table>
<h3>Calls by type summary</h3>
<table>
<thead>
<tr>
<th>Operation</th>
<th>Count</th>
</tr>
</thead>
<tbody>
{% for callType, count in collector.callSummary['calls_by_type'] %}
<tr>
<td>{{ callType }}</td>
<td>{{ count }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<h3>Calls by key summary</h3>
<table>
<thead>
<tr>
<th>Operation</th>
<th>Count</th>
</tr>
</thead>
<tbody>
{% for callKey, count in collector.callSummary['calls_by_key'] %}
<tr>
<td>{{ callKey }}</td>
<td>{{ count }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<h3>Call list</h3>
<table>