benfred

py-spy

benfred

Sampling profiler for Python programs

AI 简介

py-spy 是一个用于 Python 程序的采样式性能分析器,无需修改代码或重启进程即可实时观测 CPU 时间消耗。它基于 Rust 实现,以低开销、跨平台(Linux/macOS/Windows/FreeBSD)和进程外采样为技术特点,支持 CPython 2.3–2.7 和 3.3–3.14 版本,并可生成火焰图(flame graph)、speedscope 等可视化报告。适用于生产环境下的 Python 应用性能瓶颈诊断、线上服务响应慢排查及资源占用分析等场景。

Rust
MIT License
15.3k
Stars
531
Forks
111
Watchers
188
Issues

Star 增长

今日0
近 7 天0
近 30 天+30
综合评分71.18
默认分支master