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

Method add_function

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

Source from the content-addressed store, hash-verified

261 self.cycles = []
262
263 def add_function(self, function):
264 if function.id in self.functions:
265 sys.stderr.write('warning: overwriting function %s (id %s)\n' % (function.name, str(function.id)))
266 self.functions[function.id] = function
267
268 def add_cycle(self, cycle):
269 self.cycles.append(cycle)

Callers 6

parseMethod · 0.95
parseMethod · 0.95
parseMethod · 0.95
build_profileMethod · 0.95
parseMethod · 0.95
build_profileMethod · 0.95

Calls 2

strFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected