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

Method print_stats

Lib/profiling/tracing/__init__.py:55–59  ·  view source on GitHub ↗
(self, sort=-1)

Source from the content-addressed store, hash-verified

53 # This subclass only adds convenient and backward-compatible methods.
54
55 def print_stats(self, sort=-1):
56 import pstats
57 if not isinstance(sort, tuple):
58 sort = (sort,)
59 pstats.Stats(self).strip_dirs().sort_stats(*sort).print_stats()
60
61 def dump_stats(self, file):
62 import marshal

Callers 1

_showMethod · 0.45

Calls 2

sort_statsMethod · 0.80
strip_dirsMethod · 0.80

Tested by

no test coverage detected