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

Method runcall

Lib/profiling/tracing/__init__.py:123–128  ·  view source on GitHub ↗
(self, func, /, *args, **kw)

Source from the content-addressed store, hash-verified

121
122 # This method is more useful to profile a single function call.
123 def runcall(self, func, /, *args, **kw):
124 self.enable()
125 try:
126 return func(*args, **kw)
127 finally:
128 self.disable()
129
130 def __enter__(self):
131 self.enable()

Callers 15

run_testFunction · 0.45
test_stepMethod · 0.45
test_stepinstrMethod · 0.45
test_nextMethod · 0.45
test_next_over_importMethod · 0.45
test_returnMethod · 0.45
test_untilMethod · 0.45

Calls 3

funcFunction · 0.50
enableMethod · 0.45
disableMethod · 0.45

Tested by 15

run_testFunction · 0.36
test_stepMethod · 0.36
test_stepinstrMethod · 0.36
test_nextMethod · 0.36
test_next_over_importMethod · 0.36
test_returnMethod · 0.36
test_untilMethod · 0.36