MCPcopy Index your code
hub / github.com/python/cpython / calc_callees

Method calc_callees

Lib/pstats.py:312–323  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

310 return self
311
312 def calc_callees(self):
313 if self.all_callees:
314 return
315 self.all_callees = all_callees = {}
316 for func, (cc, nc, tt, ct, callers) in self.stats.items():
317 if not func in all_callees:
318 all_callees[func] = {}
319 for func2, caller in callers.items():
320 if not func2 in all_callees:
321 all_callees[func2] = {}
322 all_callees[func2][func] = caller
323 return
324
325 #******************************************************************
326 # The following functions support actual printing of reports

Callers 1

print_calleesMethod · 0.95

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected