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

Method add_function

recipes/Python/578138_gprof2dotpy/recipe-578138.py:244–252  ·  view source on GitHub ↗
(self, function)

Source from the content-addressed store, hash-verified

242 self.functions = set()
243
244 def add_function(self, function):
245 assert function not in self.functions
246 self.functions.add(function)
247 # XXX: Aggregate events?
248 if function.cycle is not None:
249 for other in function.cycle.functions:
250 if function not in self.functions:
251 self.add_function(other)
252 function.cycle = self
253
254
255class Profile(Object):

Callers 6

_tarjanMethod · 0.95
parseMethod · 0.95
make_functionMethod · 0.45
parse_callMethod · 0.45
get_functionMethod · 0.45
parse_symbolsMethod · 0.45

Calls 1

addMethod · 0.45

Tested by

no test coverage detected