(self, file)
| 59 | pstats.Stats(self).strip_dirs().sort_stats(*sort).print_stats() |
| 60 | |
| 61 | def dump_stats(self, file): |
| 62 | import marshal |
| 63 | with open(file, 'wb') as f: |
| 64 | self.create_stats() |
| 65 | marshal.dump(self.stats, f) |
| 66 | |
| 67 | def create_stats(self): |
| 68 | self.disable() |