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

Method add_entry

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

Source from the content-addressed store, hash-verified

1889 self.entries = {}
1890
1891 def add_entry(self, function):
1892 try:
1893 entry = self.entries[function.id]
1894 except KeyError:
1895 self.entries[function.id] = (function, { })
1896 else:
1897 function_total, callees_total = entry
1898 function_total.samples += function.samples
1899
1900 def add_callee(self, function, callee):
1901 func, callees = self.entries[function.id]

Callers 1

parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected