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

Method print_stats

Lib/profile.py:396–400  ·  view source on GitHub ↗
(self, sort=-1)

Source from the content-addressed store, hash-verified

394
395
396 def print_stats(self, sort=-1):
397 import pstats
398 if not isinstance(sort, tuple):
399 sort = (sort,)
400 pstats.Stats(self).strip_dirs().sort_stats(*sort).print_stats()
401
402 def dump_stats(self, file):
403 with open(file, 'wb') as f:

Callers 1

_showMethod · 0.45

Calls 2

sort_statsMethod · 0.80
strip_dirsMethod · 0.80

Tested by

no test coverage detected