MCPcopy Index your code
hub / github.com/python/cpython / dump_stats

Method dump_stats

Lib/pstats.py:199–202  ·  view source on GitHub ↗

Write the profile data to a file we know how to load back.

(self, filename)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

openFunction · 0.70
dumpMethod · 0.45

Tested by

no test coverage detected