aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels
AgeCommit message (Collapse)Author
2009-09-08Fixed an issue where the panel navigation might have a different number ofRob Hudson
queries than the panel pane if SQL queries happened in between calls. This caches the queries off in an array to be used in both places. If the possibility of queries happening elsewhere occurs, the SQL panel should probably be moved lower in the execution stack.
2009-08-28Refactored `reformat_sql` to produce a more compact output for a tighter ↵Rob Hudson
view of the SQL.
2009-08-28Refactored SQL panel to use datetime objects and added a visual display of ↵Rob Hudson
both duration and sequence to the SQL template.
2009-08-25added spanish translation of the panels nav titlePercy Perez-Pinedo
2009-08-12oops, retitled templates panelIdan Gazit
2009-08-12Proper handling of template panel titleIdan Gazit
2009-08-12added in-panel titleIdan Gazit
2009-08-12renamed title/subtitle -> nav_title/nav_subtitleIdan Gazit
2009-08-11allow for handling the pathological case of an insanely large template contextAlex Gaynor
2009-08-11Refactored the UI to be a right hand side vertical toolbar. DebugPanel ↵Rob Hudson
subclass grew a subtitle method to display informative text under the title.
2009-08-10Merge commit 'origin/master'Alex Gaynor
2009-08-10Show the number of rendered templates in the toolbar.Alex Gaynor
2009-07-28Merge commit 'rob/master'Alex Gaynor
2009-07-28Bypass context variables which 'repr' is broken.Mike Korobov
Signed-off-by: Rob Hudson <rob@tastybrew.com>
2009-06-16Merge commit 'origin/master'Alex Gaynor
2009-06-16provide an option to see stuff indjango in the sql stack traceAlex Gaynor
2009-06-16only conditionally include the Django 1.1 signal for backwards compatibilityAlex Gaynor
Signed-off-by: Rob Hudson <rob@tastybrew.com>
2009-06-12only conditionally include the Django 1.1 signal for backwards compatibilityAlex Gaynor
2009-05-27Adding a signals panel to display list of signals and their providing argumentsAlex Gaynor
and receivers. Thanks Alex Gaynor! Signed-off-by: Rob Hudson <rob@cogit8.org>
2009-03-21Adding stack traces to SQL panel to see where the calls are coming from.Rob Hudson
Merge branch 'sql_stacktrace' * sql_stacktrace: Tuple unpacking of stacktrace variables for niceness. Add preliminary support for stacktraces to see where SQL queries are coming from.
2009-03-21Tidied up SQL formatting in SQL panel.Malcolm Tredinnick
Added formatting of "GROUP BY" and "HAVING", which now show up in trunk queries and could have shown up previously if manually patched into the QuerySet.query instance. Also indent joined tables a bit more underneath the "FROM" statement: they are sub-statements of "FROM". Signed-off-by: Rob Hudson <rob@cogit8.org>
2009-03-21Fixed "FROM" formatting in SQL panel layout.Malcolm Tredinnick
We always start a new line for "FROM" now. Previous code was assuming MySQL quoting of identifiers (MySQL is a bit non-standard in using backquotes) and was assuming the last thing before the FROM would be a quoted identifier, which wasn't always true, particularly when extra() is used on querysets. Signed-off-by: Rob Hudson <rob@cogit8.org>
2009-01-23Add preliminary support for stacktraces to see where SQL queries are coming ↵Rob Hudson
from. I'm wanting to test this a bit more before I merge it in fully. Feedback welcome.
2009-01-23Fix triggering an extra SQL query via the auth context processor.Rob Hudson
Fixed by moving the template panel's context_processor introspection to the content method so this happens at the process_response time instead of at process_request time. Since context processors _were_ happening at the process_response end, it was triggering the query `user.get_and_delete_messages()` which was also getting triggered separately if used in templates (i.e. the admin templates) resulting in duplicate queries showing up in the toolbar.
2008-12-11Win32 systems don't have the resource module. This patch codes around it so ↵Rob Hudson
only the basic timings are shown for those that don't have the resource module, and finer grained timings are shown for those that do.
2008-12-09Minor cleanup and template change to previous commit.Rob Hudson
2008-12-09Added more of the rusage stats in a drop-down panelMartin Maney
(some items were commented out after I was reminded that not all of the original BSD items are supported under Linux)
2008-12-09Added fine-grained CPU usage to timerMartin Maney
2008-12-09Fix the number of queries shown in the title, which was overreporting by ↵Adam Gomaa
self._offset (sometimes 0).
2008-12-09Only show the SQL profile if we're using a MySQL database backend.Rob Hudson
2008-12-09Django seems to only produce LEFT OUTER JOINs, so search for that.Rob Hudson
2008-10-07Fix inconsistent SQL timings. All SQL timings are milliseconds now.Rob Hudson
2008-10-07Since we're concatenating params, make the default empty value a string.Rob Hudson
2008-10-07Bringing over patch from Alex Gaynor to fix SQL params when using ↵Rob Hudson
django.contrib.gis.
2008-10-06Updating SQL output a bit now that I've found more queries to test against.Rob Hudson
2008-10-02Merge template path update from 'alex/master'. Thanks!Rob Hudson
2008-10-02Merging in new settings panel from 'binarydud/master'. Thanks!Rob Hudson
2008-10-01used os.path.normpath on templatdirs, this makes it looks cleaner, ↵Alex Gaynor
particularly removing ...
2008-09-30added settings var panelMatt George
(cherry picked from commit fdf77eea58887f68c210c7a77218e2fa6d5a86af)
2008-09-27Merging in the Logging panel from Alex Gaynor. Thanks Alex!Rob Hudson
2008-09-27added logger panelAlex Gaynor
2008-09-24Adding a SHA-1 hash to the parameters passed to get the EXPLAIN query to avoidRob Hudson
any sort of tampering of the SQL or parameters.
2008-09-24Merging from jezdez/master: Added context processors to TemplateDebugPanel.Rob Hudson
2008-09-24Added context processors to TemplateDebugPanelJannis Leidel
2008-09-23Add catch for non JSON serializable objects and don't show the EXPLAIN link forRob Hudson
these.
2008-09-23Updating pygments styles to better match new toolbar styles.Rob Hudson
2008-09-21Refactoring middleware and panels so panels have more explicit middleware-likeRob Hudson
methods to be more clear when panel processing happens.
2008-09-21Show 1 SQL query v.s. 3 SQL queriesSimon Willison
2008-09-20Updating SQL panel to use Pygments for SQL highlighting if it's available,Rob Hudson
moving the EXPLAIN link to the left to avoid scrolling. I have a feeling that the SQL panel could use a serious security review since we're passing SQL in via GET which is, I'm sure, a big no-no.
2008-09-20Merge commit '8e124b0a129ab351ec6cae30d8358709d4c1430b'Rob Hudson
From Simon Willison's branch: Use pformat for template contexts, which makes it more readable