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

Method runctx

tools/python-3.11.9-amd64/Lib/profile.py:419–426  ·  view source on GitHub ↗
(self, cmd, globals, locals)

Source from the content-addressed store, hash-verified

417 return self.runctx(cmd, dict, dict)
418
419 def runctx(self, cmd, globals, locals):
420 self.set_cmd(cmd)
421 sys.setprofile(self.dispatcher)
422 try:
423 exec(cmd, globals, locals)
424 finally:
425 sys.setprofile(None)
426 return self
427
428 # This method is more useful to profile a single function call.
429 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