MCPcopy Create free account
hub / github.com/ActiveState/code / dump

Method dump

recipes/Python/578138_gprof2dotpy/recipe-578138.py:560–572  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

558 del function.calls[callee_id]
559
560 def dump(self):
561 for function in self.functions.values():
562 sys.stderr.write('Function %s:\n' % (function.name,))
563 self._dump_events(function.events)
564 for call in function.calls.values():
565 callee = self.functions[call.callee_id]
566 sys.stderr.write(' Call %s:\n' % (callee.name,))
567 self._dump_events(call.events)
568 for cycle in self.cycles:
569 sys.stderr.write('Cycle:\n')
570 self._dump_events(cycle.events)
571 for function in cycle.functions:
572 sys.stderr.write(' Function %s\n' % (function.name,))
573
574 def _dump_events(self, events):
575 for event, value in events.items():

Callers 15

WriteMethod · 0.45
configureFunction · 0.45
run_in_separate_processFunction · 0.45
mainFunction · 0.45
_splitMethod · 0.45
_syncMethod · 0.45
recordExitOffsetMethod · 0.45
run_in_separate_processFunction · 0.45
recipe-580687.pyFile · 0.45
mainFunction · 0.45
pickle_generatorFunction · 0.45
_splitMethod · 0.45

Calls 3

_dump_eventsMethod · 0.95
valuesMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected