From 9f5c2280ec25c162b720a6e864b081934126cecc Mon Sep 17 00:00:00 2001 From: Rob Hudson Date: Tue, 9 Dec 2008 14:14:46 -0800 Subject: Minor cleanup and template change to previous commit. --- debug_toolbar/panels/timer.py | 5 ++--- .../templates/debug_toolbar/panels/timer.html | 22 ++++++++++++++++++---- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/debug_toolbar/panels/timer.py b/debug_toolbar/panels/timer.py index b93c843..cafdb05 100644 --- a/debug_toolbar/panels/timer.py +++ b/debug_toolbar/panels/timer.py @@ -1,7 +1,6 @@ -import time, resource - +import resource +import time from django.template.loader import render_to_string - from debug_toolbar.panels import DebugPanel diff --git a/debug_toolbar/templates/debug_toolbar/panels/timer.html b/debug_toolbar/templates/debug_toolbar/panels/timer.html index 161507c..1b077c6 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/timer.html +++ b/debug_toolbar/templates/debug_toolbar/panels/timer.html @@ -1,7 +1,21 @@

Resource Usage

- - {% for row in rows %} - - {% endfor %} + + + + + + + + + + + + {% for key, value in rows %} + + + + + {% endfor %} +
{{ row.1 }}{{ row.0 }}
KeyValue
{{ key|escape }}{{ value|escape }}
-- cgit v1.2.3