(self, file)
| 63 | self._dump_stats(filename) |
| 64 | |
| 65 | def _dump_stats(self, file): |
| 66 | stats_with_marker = dict(self.stats) |
| 67 | stats_with_marker[("__sampled__",)] = True |
| 68 | with open(file, "wb") as f: |
| 69 | marshal.dump(stats_with_marker, f) |
| 70 | |
| 71 | # Needed for compatibility with pstats.Stats |
| 72 | def create_stats(self): |