Home | History | Annotate | Download | only in Lib

Lines Matching refs:Trace

30 """program/module to trace Python program or function execution
33 trace.py -c -f counts --ignore-dir '$prefix' spam.py eggs
34 trace.py -t --ignore-dir '$prefix' spam.py eggs
35 trace.py --trackcalls spam.py eggs
40 # create a Trace object, telling it what to ignore, and whether to
42 tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,],
43 trace=0, count=1)
50 __all__ = ['Trace', 'CoverageResults']
302 print(("trace: Could not open %r for writing: %s "
386 class Trace:
387 def __init__(self, count=1, trace=1, countfuncs=0, countcallers=0,
393 @param trace true iff it should print out each line that is
398 `count' and `trace'
413 self.trace = trace
424 elif trace and count:
427 elif trace:
543 if self.trace:
552 # record the file name and line number of every trace
567 # record the file name and line number of every trace
596 parser.add_argument('--version', action='version', version='trace 2.0')
606 grp.add_argument('-t', '--trace', action='store_true',
611 'Cannot be specified alongside --trace or --count.')
682 if not any([opts.trace, opts.count, opts.listfuncs, opts.trackcalls]):
683 parser.error('must specify one of --trace, --count, --report, '
686 if opts.listfuncs and (opts.count or opts.trace):
687 parser.error('cannot specify both --listfuncs and (--trace or --count)')
698 t = Trace(opts.count, opts.trace, countfuncs=opts.listfuncs,