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

Method dump_stats

Lib/profiling/tracing/__init__.py:61–65  ·  view source on GitHub ↗
(self, file)

Source from the content-addressed store, hash-verified

59 pstats.Stats(self).strip_dirs().sort_stats(*sort).print_stats()
60
61 def dump_stats(self, file):
62 import marshal
63 with open(file, 'wb') as f:
64 self.create_stats()
65 marshal.dump(self.stats, f)
66
67 def create_stats(self):
68 self.disable()

Callers 2

_showMethod · 0.45

Calls 3

create_statsMethod · 0.95
openFunction · 0.50
dumpMethod · 0.45

Tested by 1