Posts Profiling
Post
Cancel

Profiling

Intel自顶向下的微架构分析方法

Python 和 C/C++ 拓展程序如何性能优化?看这一篇文就够

1
2
LD_PRELOAD=/path/to/libprofiler.so.0 CPUPROFILE=output.prof ./program (args)
pprof --pdf output.prof > output.pdf
1
2
3
py-spy record -o output_debug.svg --native -- python test.py

py-spy record --format speedscore -o output_debug.json --native -- python test.py
This post is licensed under CC BY 4.0 by the author.