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

Method runctx

Lib/profiling/tracing/__init__.py:114–120  ·  view source on GitHub ↗
(self, cmd, globals, locals)

Source from the content-addressed store, hash-verified

112 return self.runctx(cmd, dict, dict)
113
114 def runctx(self, cmd, globals, locals):
115 self.enable()
116 try:
117 exec(cmd, globals, locals)
118 finally:
119 self.disable()
120 return self
121
122 # This method is more useful to profile a single function call.
123 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