aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/templates
diff options
context:
space:
mode:
authorDave McLain2011-04-22 01:24:57 -0500
committerDave McLain2011-04-22 01:30:19 -0500
commit3929bf2066e108695546e2dd8db14579a8710126 (patch)
treeb556973e93cd569a9b184731db1b30fc975b4b73 /debug_toolbar/templates
parentdfee3848866f2193576d2bdd44f0c8bcd10c63a4 (diff)
downloaddjango-debug-toolbar-3929bf2066e108695546e2dd8db14579a8710126.tar.bz2
first pass at a profiler panel
Diffstat (limited to 'debug_toolbar/templates')
-rw-r--r--debug_toolbar/templates/debug_toolbar/panels/profiling.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/debug_toolbar/templates/debug_toolbar/panels/profiling.html b/debug_toolbar/templates/debug_toolbar/panels/profiling.html
new file mode 100644
index 0000000..95af495
--- /dev/null
+++ b/debug_toolbar/templates/debug_toolbar/panels/profiling.html
@@ -0,0 +1,23 @@
+{% load i18n %}
+
+
+
+<table width="100%">
+ <thead>
+ <tr>
+ <th>{% trans "ncalls" %}</th>
+ <th>{% trans "tottime" %}<br/>({% trans "percall" %})</th>
+ <th>{% trans "cumtime" %}<br/>({% trans "percall" %})</th>
+ <th>{% trans "filename:lineno(function)" %}</th>
+ <th>{% trans "toggle" %}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for call in func_list %}
+ <tr id="{{ call.id }}" class="djDebugProfileRow" style="background:{{ call.background }}" depth="{{ call.depth }}">
+ {{ call.as_row }}
+ <td><a class="djDebugProfileToggle">Toggle Subcalls</a></td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>