Back to prev

Profiling Collections

Jun 29, 2023
Linkang Chan
@Jesse Chan

本文用来记录日常开发过程中的一些语言使用性能测试和调试工具,按照不同的语言分类, 其实没有最好的工具,只有最适合眼前需要解决的问题的工具。

Python

py-spy

py-spy一个 Rust 写的 Python 性能捕捉工具,可以在不侵入代码的同时进行性能评估。

pyinstrument

pyinstrument支持在代码中手动增加需要 profiling 的库。

viztracer

viztracer同样是一款支持在代码中插入和非侵入式的 profiling 的工具。

austin

austinPython frame stack sampler for CPython

scalene

scaleneCPU/GPU/Memory 都能 profiling