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
42 tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,],
43 trace=0, count=1)
304 print(("trace: Could not open %r for writing: %s "
389 def __init__(self, count=1, trace=1, countfuncs=0, countcallers=0,
395 @param trace true iff it should print out each line that is
400 `count' and `trace'
415 self.trace = trace
426 elif trace and count:
429 elif trace:
545 if self.trace:
554 # record the file name and line number of every trace
569 # record the file name and line number of every trace
598 parser.add_argument('--version', action='version', version='trace 2.0')
608 grp.add_argument('-t', '--trace', action='store_true',
613 'Cannot be specified alongside --trace or --count.')
685 if not any([opts.trace, opts.count, opts.listfuncs, opts.trackcalls]):
686 parser.error('must specify one of --trace, --count, --report, '
689 if opts.listfuncs and (opts.count or opts.trace):
690 parser.error('cannot specify both --listfuncs and (--trace or --count)')
698 t = Trace(opts.count, opts.trace, countfuncs=opts.listfuncs,