Home | History | Annotate | Download | only in python2.7

Lines Matching full: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.prefix, sys.exec_prefix,], trace=0,
91 -t, --trace Print each line to sys.stdout before it is executed.
363 print >> sys.stderr, ("trace: Could not open %r for writing: %s"
450 class Trace:
451 def __init__(self, count=1, trace=1, countfuncs=0, countcallers=0,
457 @param trace true iff it should print out each line that is
462 `count' and `trace'
478 self.trace = trace
489 elif trace and count:
492 elif trace:
606 if self.trace:
615 # record the file name and line number of every trace
630 # record the file name and line number of every trace
666 ["help", "version", "trace", "count",
679 trace = 0
699 sys.stdout.write("trace 2.0\n")
714 if opt == "-t" or opt == "--trace":
715 trace = 1
768 if listfuncs and (count or trace):
769 _err_exit("cannot specify both --listfuncs and (--trace or --count)")
771 if not (count or trace or report or listfuncs or countcallers):
772 _err_exit("must specify one of --trace, --count, --report, "
793 t = Trace(count, trace, countfuncs=listfuncs,