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

Method globaltrace_countfuncs

Lib/trace.py:522–529  ·  view source on GitHub ↗

Handler for call events. Adds (filename, modulename, funcname) to the self._calledfuncs dict.

(self, frame, why, arg)

Source from the content-addressed store, hash-verified

520 self._callers[(parent_func, this_func)] = 1
521
522 def globaltrace_countfuncs(self, frame, why, arg):
523 """Handler for call events.
524
525 Adds (filename, modulename, funcname) to the self._calledfuncs dict.
526 """
527 if why == 'call':
528 this_func = self.file_module_function_of(frame)
529 self._calledfuncs[this_func] = 1
530
531 def globaltrace_lt(self, frame, why, arg):
532 """Handler for call events.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected