aboutsummaryrefslogtreecommitdiffstats
path: root/debug_toolbar/panels
AgeCommit message (Collapse)Author
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
2008-09-20Import simplejson from django rather than an external dependency.Rob Hudson
2008-09-20Use pformat for template contexts, which makes it more readableSimon Willison
2008-09-19Merge branch 'master' of git://github.com/nowells/django-debug-toolbarRob Hudson
2008-09-19Fixed template panel to skip over debug_toolbar templates. Fixed a bug in ↵Nowell Strite
template context output where rendering would hang while trying to autoescape the context variable output.
2008-09-18Merge branch 'explain' of git@github.com:robhudson/django-debug-toolbarRob Hudson
2008-09-18I noticed the template_rendered signal from the test suite also passed context,Rob Hudson
so I'm including the context with each template in the Template panel. This should make the designers happy.
2008-09-11Adding JSON params to pass to view and adding link for explain.Rob Hudson
2008-09-11Moving reformat sql so we can pull this in elsewhere.Rob Hudson
2008-09-09Adding a templates panel that shows the templates used during aRob Hudson
request/response cycle. Also lists settings.TEMPLATE_DIRS.
2008-09-09Making it so that the SQL panel display SQL a little more formatted and nice.Rob Hudson
2008-09-09Adding a `has_content` boolean to panels to avoid issues with checking ifRob Hudson
content exists and displaying it in the templates.
2008-09-09Merging in some changes from David Cramer for the HTTP vars panel but renamingRob Hudson
it to request vars since we've added session and cookie data (sessions have nothing to do with HTTP technically).
2008-09-08I forgot to really *add* the cache stats panel by David Cramer.Rob Hudson
2008-09-08Added a database stats tracking class to pass through params. This is setupRob Hudson
for a later addition of being able to add EXPLAIN support to individual queries for SQL debugging. Contributed by David Cramer.
2008-09-08HTTP POST/GET panel contributed by David CramerRob Hudson
2008-09-08convert panels with content to use file based templates for overriding abilityRob Hudson
2008-09-07Adding a new panel to display HTTP headersRob Hudson
2008-09-07updating to pass around the request objectRob Hudson
2008-09-07adding a comment to note that panel subclasses should declare a nameRob Hudson