diff options
| author | David Cramer | 2011-05-10 00:20:25 -0700 |
|---|---|---|
| committer | David Cramer | 2011-05-10 00:20:25 -0700 |
| commit | 9514b001889e7331d80cc8c4f168b284a27825e0 (patch) | |
| tree | c9196663618a673cdfb7038ba921bc27d6da359f /debug_toolbar/panels/profiling.py | |
| parent | 3f98e826400f29da672e96c1b08dc4bf7287b5c2 (diff) | |
| download | django-debug-toolbar-9514b001889e7331d80cc8c4f168b284a27825e0.tar.bz2 | |
Add support for __traceback_hide__ (tidy_stacktrace now inspects inspect.stack() rather than traceback.extract_stack()) (fixes #160)
Diffstat (limited to 'debug_toolbar/panels/profiling.py')
| -rw-r--r-- | debug_toolbar/panels/profiling.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/debug_toolbar/panels/profiling.py b/debug_toolbar/panels/profiling.py index 68aafb7..95a1a4d 100644 --- a/debug_toolbar/panels/profiling.py +++ b/debug_toolbar/panels/profiling.py @@ -136,6 +136,7 @@ class ProfilingDebugPanel(DebugPanel): return _('Profiling') def process_view(self, request, view_func, view_args, view_kwargs): + __traceback_hide__ = True self.profiler = cProfile.Profile() args = (request,) + view_args return self.profiler.runcall(view_func, *args, **view_kwargs) |
