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