PyDocs

Nav

Debugging and profiling

Trace

trace

class (source)
  • Trace(count=1, trace=1, countfuncs=0, countcallers=0, ignoremods=(), ignoredirs=(), infile=None, outfile=None, timing=False)
Create an object to trace execution of a single statement or expression. All parameters are optional. count enables counting of line numbers. trace enables line execution tracing. countfuncs enables listing of the functions called during the run. countcallers enables call relationship tracking. ignoremods is a list of modules or packages to ignore. ignoredirs is a list of directories whose modules or packages should be ignored. infile is the name of the file from which to read stored count information. outfile is the name of the file in which to write updated count information. timing enables a timestamp relative to when tracing was started to be displayed.
Members of Trace

r

results
Return a CoverageResults object that contains the cumulative results of all previous calls to run, runctx and runfunc for the given Trace instance.
run
Execute the command and gather statistics from the execution with the current tracing parameters.
runctx
Execute the command and gather statistics from the execution with the current tracing parameters, in the defined global and local environments.
runfunc
Call func with the given arguments under control of the Trace object with the current tracing parameters.
0 Examples
No examples for trace/Trace.
See Also
No see-alsos for trace/Trace
0 Notes
No notes for Trace