User Tools

Site Tools


Sidebar

Go Back

Contact
Recent Changes
Sitemap
snippets:merge_python_stats_files

Merge Python stats files

from pathlib import Path
import pstats

stat = pstats.Stats()
for f in Path('.').glob('*.stats'):
    stat.add(str(f))


stat.dump_stats('all.stats')


snippets/merge_python_stats_files.txt · Last modified: 2020/05/14 10:02 by whtsky