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

Method runcall

Lib/profile.py:439–445  ·  view source on GitHub ↗
(self, func, /, *args, **kw)

Source from the content-addressed store, hash-verified

437
438 # This method is more useful to profile a single function call.
439 def runcall(self, func, /, *args, **kw):
440 self.set_cmd(repr(func))
441 sys.setprofile(self.dispatcher)
442 try:
443 return func(*args, **kw)
444 finally:
445 sys.setprofile(None)
446
447
448 #******************************************************************

Callers

nothing calls this directly

Calls 2

set_cmdMethod · 0.95
funcFunction · 0.50

Tested by

no test coverage detected