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

Method runctx

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

Source from the content-addressed store, hash-verified

96 return self.runctx(cmd, dict, dict)
97
98 def runctx(self, cmd, globals, locals):
99 self.enable()
100 try:
101 exec(cmd, globals, locals)
102 finally:
103 self.disable()
104 return self
105
106 # This method is more useful to profile a single function call.
107 def runcall(self, func, /, *args, **kw):

Callers 2

runMethod · 0.95
runctxFunction · 0.45

Calls 2

enableMethod · 0.45
disableMethod · 0.45

Tested by

no test coverage detected