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

Method trace

Lib/test/test_dtrace.py:69–75  ·  view source on GitHub ↗
(self, script_file, subcommand=None)

Source from the content-addressed store, hash-verified

67 return command
68
69 def trace(self, script_file, subcommand=None):
70 command = self.generate_trace_command(script_file, subcommand)
71 stdout, _ = subprocess.Popen(command,
72 stdout=subprocess.PIPE,
73 stderr=subprocess.STDOUT,
74 universal_newlines=True).communicate()
75 return stdout
76
77 def trace_python(self, script_file, python_file, optimize_python=None):
78 python_flags = []

Callers 2

trace_pythonMethod · 0.95
assert_usableMethod · 0.95

Calls 2

communicateMethod · 0.45

Tested by

no test coverage detected