MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / globaltrace_countfuncs

Method globaltrace_countfuncs

tools/python-3.11.9-amd64/Lib/trace.py:519–526  ·  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

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

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected