diff options
| author | David Cramer | 2011-04-22 14:59:59 -0700 | 
|---|---|---|
| committer | David Cramer | 2011-04-22 14:59:59 -0700 | 
| commit | a3e8ce8eb1c4e2d1482a22d3a7e0dba7f4ff3201 (patch) | |
| tree | c6d3c5a078787f017ce81e6952505935c2305be8 /debug_toolbar/panels/profiling.py | |
| parent | 249247f9c7a5027d444471526859ee86c06a1f1a (diff) | |
| download | django-debug-toolbar-a3e8ce8eb1c4e2d1482a22d3a7e0dba7f4ff3201.tar.bz2 | |
Basic support for toggling everywhere correctly
Diffstat (limited to 'debug_toolbar/panels/profiling.py')
| -rw-r--r-- | debug_toolbar/panels/profiling.py | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/debug_toolbar/panels/profiling.py b/debug_toolbar/panels/profiling.py index d0ea2c1..68aafb7 100644 --- a/debug_toolbar/panels/profiling.py +++ b/debug_toolbar/panels/profiling.py @@ -147,9 +147,11 @@ class ProfilingDebugPanel(DebugPanel):      def add_node(self, func_list, func, max_depth, cum_time=0.1):          func_list.append(func) +        func.has_subfuncs = False          if func.depth < max_depth:              for subfunc in func.subfuncs():                  if subfunc.stats[3] >= cum_time: +                    func.has_subfuncs = True                      self.add_node(func_list, subfunc, max_depth, cum_time=cum_time)      def content(self):  | 
