(self, stream=None)
| 626 | self.current_stack_level -= 1 |
| 627 | |
| 628 | def show_results(self, stream=None): |
| 629 | if stream is None: |
| 630 | stream = sys.stdout |
| 631 | |
| 632 | for func, timestamps in self.functions.items(): |
| 633 | function_name = "%s.%s" % (func.__module__, func.__name__) |
| 634 | for ts, level in zip(timestamps, self.stack[func]): |
| 635 | stream.write("FUNC %s %.4f %.4f %.4f %.4f %d\n" % ( |
| 636 | (function_name,) + ts[0] + ts[1] + (level,))) |
| 637 | |
| 638 | |
| 639 | class CodeMap(dict): |
no test coverage detected