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

Method runctx

Lib/profile.py:69–76  ·  view source on GitHub ↗
(self, statement, globals, locals, filename, sort)

Source from the content-addressed store, hash-verified

67 self._show(prof, filename, sort)
68
69 def runctx(self, statement, globals, locals, filename, sort):
70 prof = self.profiler()
71 try:
72 prof.runctx(statement, globals, locals)
73 except SystemExit:
74 pass
75 finally:
76 self._show(prof, filename, sort)
77
78 def _show(self, prof, filename, sort):
79 if filename is not None:

Callers 1

runctxFunction · 0.45

Calls 2

_showMethod · 0.95
profilerMethod · 0.80

Tested by

no test coverage detected