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

Method profiler

Lib/test/test_free_threading/test_monitoring.py:312–313  ·  view source on GitHub ↗
(frame, event, arg)

Source from the content-addressed store, hash-verified

310 traces = []
311
312 def profiler(frame, event, arg):
313 traces.append((frame.f_code.co_name, event, arg))
314
315 def a(x, y):
316 return b(x, y)

Callers 4

runMethod · 0.80
runctxMethod · 0.80
runMethod · 0.80
runctxMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected