26.7.1.2. Main options
The --listfuncs option is mutually exclusive with the --trace and
--count options . When --listfuncs is provided, neither --counts
nor --trace are accepted, and vice versa.
--count, -c
Produce a set of annotated listing files upon program completion that shows
how many times each statement was executed.
See also --coverdir, --file, --no-report below.
--trace, -t
Display lines as they are executed.
--listfuncs, -l
Display the functions executed by running the program.
--report, -r
Produce an annotated list from an earlier program run that used the --count
and --file option. Do not execute any code.
--trackcalls, -T
Display the calling relationships exposed by running the program.
26.7.1.3. Modifiers
--file=<file>, -f
Name of a file to accumulate counts over several tracing runs. Should be used
with the --count option.
--coverdir=<dir>, -C
Directory where the report files go. The coverage report for
package.module is written to file dir/package/module.cover.
--missing, -m
When generating annotated listings, mark lines which were not executed with
‘>>>>>>‘.
--summary, -s
When using --count or --report, write a brief summary to
stdout for each file processed.
--no-report, -R
Do not generate annotated listings. This is useful if you intend to make
several runs with --count then produce a single set of annotated
listings at the end.
--timing, -g
Prefix each line with the time since the program started. Only used while
tracing.
26.7.1.4. Filters
These options may be repeated multiple times.
--ignore-module=<mod>
Accepts comma separated list of module names. Ignore each of the named
modules and its submodules (if it is a package).
--ignore-dir=<dir>
Ignore all modules and packages in the named directory and subdirectories
(multiple directories can be joined by os.pathsep).