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

Method _dump_stats

Lib/profiling/sampling/pstats_collector.py:65–69  ·  view source on GitHub ↗
(self, file)

Source from the content-addressed store, hash-verified

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):

Callers 1

exportMethod · 0.95

Calls 2

openFunction · 0.50
dumpMethod · 0.45

Tested by

no test coverage detected