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

Function runctx

tools/python-3.11.9-amd64/Lib/profile.py:94–100  ·  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

92 return _Utils(Profile).run(statement, filename, sort)
93
94def runctx(statement, globals, locals, filename=None, sort=-1):
95 """Run statement under profiler, supplying your own globals and locals,
96 optionally saving results in filename.
97
98 statement and filename have the same semantics as profile.run
99 """
100 return _Utils(Profile).runctx(statement, globals, locals, filename, sort)
101
102
103class Profile:

Callers 1

mainFunction · 0.70

Calls 2

_UtilsClass · 0.85
runctxMethod · 0.45

Tested by

no test coverage detected