Commit 9959d155 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Should check this at the end to at least identify the issue rather than giving bogus results

parent 46e8df87
......@@ -83,6 +83,7 @@ class TracingProfiler(object):
sys.settrace(self.tracefunc)
def stop(self):
assert sys.gettrace() == self.tracefunc, "Problem! Someone/something removed our tracer. It's now: %r" % sys.gettrace()
sys.settrace(None)
return self.dumper()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment