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

Method runctx

Lib/profiling/tracing/_utils.py:19–26  ·  view source on GitHub ↗
(self, statement, globals, locals, filename, sort)

Source from the content-addressed store, hash-verified

17 self._show(prof, filename, sort)
18
19 def runctx(self, statement, globals, locals, filename, sort):
20 prof = self.profiler()
21 try:
22 prof.runctx(statement, globals, locals)
23 except SystemExit:
24 pass
25 finally:
26 self._show(prof, filename, sort)
27
28 def _show(self, prof, filename, sort):
29 if filename is not None:

Callers 5

do_profilingMethod · 0.45
test_runctxMethod · 0.45
test_exec_countsMethod · 0.45
run_testMethod · 0.45

Calls 2

_showMethod · 0.95
profilerMethod · 0.80

Tested by 4

do_profilingMethod · 0.36
test_runctxMethod · 0.36
test_exec_countsMethod · 0.36