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: 2021/08/26 14:42 (external edit)