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

Function runctx

Lib/profile.py:103–109  ·  view source on GitHub ↗

Run statement under profiler, supplying your own globals and locals, optionally saving results in filename. statement and filename have the same semantics as profile.run

(statement, globals, locals, filename=None, sort=-1)

Source from the content-addressed store, hash-verified

101 return _Utils(Profile).run(statement, filename, sort)
102
103def runctx(statement, globals, locals, filename=None, sort=-1):
104 """Run statement under profiler, supplying your own globals and locals,
105 optionally saving results in filename.
106
107 statement and filename have the same semantics as profile.run
108 """
109 return _Utils(Profile).runctx(statement, globals, locals, filename, sort)
110
111
112class Profile:

Callers 1

mainFunction · 0.70

Calls 2

_UtilsClass · 0.70
runctxMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…