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

Function runctx

Lib/profiling/tracing/__init__.py:31–38  ·  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

29 return _Utils(Profile).run(statement, filename, sort)
30
31def runctx(statement, globals, locals, filename=None, sort=-1):
32 """Run statement under profiler, supplying your own globals and locals,
33 optionally saving results in filename.
34
35 statement and filename have the same semantics as profile.run
36 """
37 return _Utils(Profile).runctx(statement, globals, locals,
38 filename, sort)
39
40# ____________________________________________________________
41

Callers 1

mainFunction · 0.70

Calls 2

_UtilsClass · 0.90
runctxMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…