3d630b1ba2d24909c524a6bef2db303198144afe
[wolnelektury.git] / apps / debug_toolbar / templates / debug_toolbar / panels / cache.html
1 <div class="title">
2     Cache Usage
3 </div>
4 <table>
5     <colgroup>
6         <col width="12%"/>
7         <col width="12%"/>
8         <col width="12%"/>
9         <col width="12%"/>
10         <col width="12%"/>
11         <col width="12%"/>
12         <col width="12%"/>
13         <col width="12%"/>
14     </colgroup>
15     <tr>
16         <th>Total Calls</th>
17         <td>{{ cache_calls }}</td>
18         <th>Total Time</th>
19         <td>{{ cache_time }}ms</td>
20         <th>Hits</th>
21         <td>{{ cache.hits }}</td>
22         <th>Misses</th>
23         <td>{{ cache.misses }}</td>
24     </tr>
25     <tr>
26         <th>gets</th>
27         <td>{{ cache.gets }}</td>
28         <th>sets</th>
29         <td>{{ cache.sets }}</td>
30         <th>deletes</th>
31         <td>{{ cache.deletes }}</td>
32         <th>get_many</th>
33         <td>{{ cache.get_many }}</td>
34     </tr>
35 </table>
36 {% if cache.calls %}
37 <div class="title">
38     Breakdown
39 </div>
40 <table>
41     <thead>
42         <tr>
43             <th>Time&nbsp;(ms)</th>
44             <th>Type</th>
45             <th>Parameters</th>
46             <th>Function</th>
47         </tr>
48     </thead>
49     <tbody>
50         {% for query in cache.calls %}
51             <tr class="{% cycle 'row1' 'row2' %}">
52                 <td>{{ query.0|floatformat:"4" }}</td>
53                 <td>{{ query.1|escape }}</td>
54                 <td>{{ query.2|escape }}</td>
55                 <td>{{ query.3.0 }}:{{ query.3.1 }}({{ query.3.2|escape }}); {{ query.3.3.0|escape }}</td>
56             </tr>
57         {% endfor %}
58     </tbody>
59 </table>
60 {% endif %}