From 926643b1881422b2712a952a3c82697cbcad8285 Mon Sep 17 00:00:00 2001 From: David Cramer Date: Wed, 23 Mar 2011 18:02:06 -0700 Subject: Overhaul SQL panel to include better timeline, more compact queries, and better view of stacktrace --- .../templates/debug_toolbar/panels/sql.html | 43 ++++++++-------------- 1 file changed, 16 insertions(+), 27 deletions(-) (limited to 'debug_toolbar/templates') diff --git a/debug_toolbar/templates/debug_toolbar/panels/sql.html b/debug_toolbar/templates/debug_toolbar/panels/sql.html index 9ed87ca..8309c06 100644 --- a/debug_toolbar/templates/debug_toolbar/panels/sql.html +++ b/debug_toolbar/templates/debug_toolbar/panels/sql.html @@ -2,51 +2,35 @@ - - + + {% for query in queries %} - - + -
{% trans "Time" %} (ms) {% trans "Action" %}{% trans 'Stacktrace' %} {% trans 'Query' %}{% trans 'Timeline' %}{% trans 'Time (ms)' %}
{{ query.duration|floatformat:"2" }}
{% if query.params %} {% if query.is_select %} - SELECT
- EXPLAIN
+ S + E {% if is_mysql %} - PROFILE
+ P {% endif %} {% endif %} {% endif %} -
- {% if query.stacktrace %} - - {% endif %} + {% if query.stacktrace %} + T + {% endif %}
{{ query.sql|safe }}
{% if query.stacktrace %}