From 9514b001889e7331d80cc8c4f168b284a27825e0 Mon Sep 17 00:00:00 2001 From: David Cramer Date: Tue, 10 May 2011 00:20:25 -0700 Subject: Add support for __traceback_hide__ (tidy_stacktrace now inspects inspect.stack() rather than traceback.extract_stack()) (fixes #160) --- debug_toolbar/panels/profiling.py | 1 + 1 file changed, 1 insertion(+) (limited to 'debug_toolbar/panels') 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) -- cgit v1.2.3