| When generating annotated listings, mark lines which were not executed with |
| '``>>>>>>``'. |
| |
| :option:`--summary`, :option:`-s` |
| When using :option:`--count` or :option:`--report`, write a brief summary to |
| stdout for each file processed. |
| |
| :option:`--ignore-module` |
n | Accepts comma separated list of module names. Ignore each of the named |
| Ignore the named module and its submodules (if it is a package). May be given |
| module and its submodules (if it is a package). May be given |
| multiple times. |
| |
| :option:`--ignore-dir` |
n | Ignore all modules and packages in the named directory and subdirectories. May |
n | Ignore all modules and packages in the named directory and subdirectories |
| be given multiple times. |
| (multiple directories can be joined by os.pathsep). May be given multiple |
| times. |
| |
| |
| .. _trace-api: |
| |
| Programming Interface |
| --------------------- |
| |
| |
n | .. class:: Trace([count=1[, trace=1[, countfuncs=0[, countcallers=0[, ignoremods=()[, ignoredirs=()[, infile=None[, outfile=None]]]]]]]]) |
n | .. class:: 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 |
| file from which to read stored count information. *outfile* is a file in which |
t | to write updated count information. |
t | to write updated count information. *timing* enables a timestamp relative |
| to when tracing was started to be displayed. |
| |
| |
| .. method:: Trace.run(cmd) |
| |
| Run *cmd* under control of the Trace object with the current tracing parameters. |
| |
| |
| .. method:: Trace.runctx(cmd[, globals=None[, locals=None]]) |