Exploring TraceΒΆ

Trace is a python module to track python statement execution.

Trace([count, trace, countfuncs, ...]) @param count true iff it should count number of times each

The trace module itself has a command-line interface so you can run code:

python -m trace <filename>

but here I am more interested in the Trace class that you can import to run a trace from within your code. It seems to be meant to be used for code-coverage but I am interested in it to track function calls so that is all that I will explore here.

Navigation