aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates
diff options
context:
space:
mode:
authorRob Hudson2008-09-08 11:23:20 -0700
committerRob Hudson2008-09-08 11:23:20 -0700
commitb74c985614caa336fdb1b956df5b1af69cdf8f85 (patch)
tree98e74989f63c262a26dba6aa1dd5576ef4933ed1 /debug_toolbar/templates
parent44ae80ddd1ed1f14b1d9c00113fc629616c2283c (diff)
downloaddjango-debug-toolbar-b74c985614caa336fdb1b956df5b1af69cdf8f85.tar.bz2
I forgot to really *add* the cache stats panel by David Cramer.
Diffstat (limited to 'debug_toolbar/templates')
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/cache.html54
1 files changed, 54 insertions, 0 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/cache.html b/debug_toolbar/templates/debug_toolbar/panels/cache.html
new file mode 100644
index 0000000..9d51404
--- /dev/null
+++ b/debug_toolbar/templates/debug_toolbar/panels/cache.html
@@ -0,0 +1,54 @@
+<h3>Cache Usage</h3>
+<table>
+ <colgroup>
+ <col width="12%"/>
+ <col width="12%"/>
+ <col width="12%"/>
+ <col width="12%"/>
+ <col width="12%"/>
+ <col width="12%"/>
+ <col width="12%"/>
+ <col width="12%"/>
+ </colgroup>
+ <tr>
+ <th>Total Calls</th>
+ <td>{{ cache_calls }}</td>
+ <th>Total Time</th>
+ <td>{{ cache_time }}</td>
+ <th>Hits</th>
+ <td>{{ cache.hits }}</td>
+ <th>Misses</th>
+ <td>{{ cache.misses }}</td>
+ </tr>
+ <tr>
+ <th>gets</th>
+ <td>{{ cache.gets }}</td>
+ <th>sets</th>
+ <td>{{ cache.sets }}</td>
+ <th>deletes</th>
+ <td>{{ cache.deletes }}</td>
+ <th>get_many</th>
+ <td>{{ cache.get_many }}</td>
+ </tr>
+</table>
+<h3>Breakdown</h3>
+<table>
+ <thead>
+ <tr>
+ <th>Time&nbsp;(ms)</th>
+ <th>Type</th>
+ <th>Parameters</th>
+ <th>Function</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for query in cache.calls %}
+ <tr class="{% cycle 'row1' 'row2' %}">
+ <td>{{ query.0|floatformat:"4" }}</td>
+ <td>{{ query.1|escape }}</td>
+ <td>{{ query.2|escape }}</td>
+ <td><acronym title="{{ query.3.0 }}:{{ query.3.1 }}">{{ query.3.2|escape }}</acronym>: {{ query.3.3.0|escape }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table> \ No newline at end of file