Commits

anatoly techtonik committed f2b99a7

this cryptic combination seems to work
no time stats though

Comments (0)

Files changed (2)

wxdebuglib/analyzer.py

             self.profile.stack = [root,[[self.profile.main, self.profile.stack]]]
         else:
             root['stack'] += self.profile.stack
-            self.profile.stack = [root, [[self.profile.stack]]]
+            self.profile.stack = [root, [self.profile.stack]]
         
         # TODO - check profile where nothing happened (no PHP fn calls)...
         # self.profile.stack = []

wxdebuglib/gui/calltree.py

         
         # Setup the root node
         root = self.AddRoot(os.path.basename(p.script))
-        payload = {'self': p.stack[0], 'children': p.stack[1], 'called': {}}
+        payload = {'self': p.stack[0], 'children': p.stack[1][0], 'called': {}}
         self.SetItemPyData(root, payload)
         self.SetItemHasChildren(root, True)
         self.Expand(root)