Python trace Module
Example
Trace program execution:
import trace
tracer = trace.Trace(count=False, trace=False)
print('Trace object created')
print('Use to monitor code execution')
Try it Yourself »
Definition and Usage
The trace module traces program execution and produces coverage reports.
Use it to monitor which lines of code are executed, measure code coverage, or debug program flow.
Members
Member | Description |
---|---|
CoverageResults | Class for storing coverage data. |
Trace | Class for tracing program execution. |