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

Method trace_python

Lib/test/test_dtrace.py:77–82  ·  view source on GitHub ↗
(self, script_file, python_file, optimize_python=None)

Source from the content-addressed store, hash-verified

75 return stdout
76
77 def trace_python(self, script_file, python_file, optimize_python=None):
78 python_flags = []
79 if optimize_python:
80 python_flags.extend(["-O"] * optimize_python)
81 subcommand = " ".join([sys.executable] + python_flags + [python_file])
82 return self.trace(script_file, subcommand)
83
84 def assert_usable(self):
85 try:

Callers 1

run_caseMethod · 0.95

Calls 3

traceMethod · 0.95
extendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected