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

Method runctx

Lib/profile.py:429–436  ·  view source on GitHub ↗
(self, cmd, globals, locals)

Source from the content-addressed store, hash-verified

427 return self.runctx(cmd, dict, dict)
428
429 def runctx(self, cmd, globals, locals):
430 self.set_cmd(cmd)
431 sys.setprofile(self.dispatcher)
432 try:
433 exec(cmd, globals, locals)
434 finally:
435 sys.setprofile(None)
436 return self
437
438 # This method is more useful to profile a single function call.
439 def runcall(self, func, /, *args, **kw):

Callers 2

runMethod · 0.95
_calibrate_innerMethod · 0.95

Calls 1

set_cmdMethod · 0.95

Tested by

no test coverage detected