Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/env-windows
/ print_stats
Method
print_stats
tools/python-3.11.9-amd64/Lib/profile.py:387–390 ·
view source on GitHub ↗
(self, sort=-1)
Source
from the content-addressed store, hash-verified
385
386
387
def
print_stats(self, sort=-1):
388
import
pstats
389
pstats.Stats(self).strip_dirs().sort_stats(sort). \
390
print_stats()
391
392
def
dump_stats(self, file):
393
with
open(file,
'wb'
)
as
f:
Callers
1
_show
Method · 0.45
Calls
2
sort_stats
Method · 0.80
strip_dirs
Method · 0.80
Tested by
no test coverage detected