Lines Matching defs:trace
10 import trace
11 from trace import Trace
129 self.tracer = Trace(count=1, trace=0, countfuncs=0, countcallers=0)
222 tracer = Trace(count=1, trace=0, countfuncs=0, countcallers=0)
241 self.tracer = Trace(count=1, trace=0, countfuncs=0, countcallers=0)
266 self.tracer = Trace(count=0, trace=0, countfuncs=1)
304 'pre-existing trace function throws off measurements')
333 self.tracer = Trace(count=0, trace=0, countcallers=1)
337 'pre-existing trace function throws off measurements')
342 ((os.path.splitext(trace.__file__)[0] + '.py', 'trace', 'Trace.runfunc'),
373 tracer = trace.Trace(trace=0, count=1)
387 tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix,
388 libpath], trace=0, count=1)
396 tracer = trace.Trace(trace=0, count=1)
412 modname = trace._fullmodname(sys.modules[modname].__file__)
422 results = trace.CoverageResults({}, {}, infile, {})
431 ignore = trace._Ignore(['x', 'y.z'], [jn('foo', 'bar')])
460 # Test also that the cover file for the trace module is not created
462 tracedir = os.path.dirname(os.path.abspath(trace.__file__))
463 tracecoverpath = os.path.join(tracedir, 'trace.cover')
466 argv = '-m trace --count'.split() + [self.codefile]
480 argv = '-m trace --count --missing'.split() + [self.codefile]
496 (b'cannot specify both --listfuncs and (--trace or --count)', '-lc'),
498 (b'must specify one of --trace, --count, --report, --listfuncs, or --trackcalls', '-g'),
503 *_, stderr = assert_python_failure('-m', 'trace', *args)
512 status, stdout, stderr = assert_python_ok('-m', 'trace', '-l', filename,
525 status, trace_stdout, stderr = assert_python_ok('-m', 'trace', '-l', TESTFN,
546 status, stdout, _ = assert_python_ok('-m', 'trace', '-cs', filename,
554 assert_python_ok('-m', 'trace', '-l', '--module', 'timeit', '-n', '1')
555 assert_python_failure('-m', 'trace', '-l', '--module', 'not_a_module_zzz')