Write the profile data to a file we know how to load back.
(self, filename)
| 197 | return self |
| 198 | |
| 199 | def dump_stats(self, filename): |
| 200 | """Write the profile data to a file we know how to load back.""" |
| 201 | with open(filename, 'wb') as f: |
| 202 | marshal.dump(self.stats, f) |
| 203 | |
| 204 | # list the tuple indices and directions for sorting, |
| 205 | # along with some printable description |