
py-spy
Zero‑overhead sampling profiler for live Python applications
Why teams choose it
- No code instrumentation; attaches to running processes
- Extremely low overhead thanks to Rust and out‑of‑process sampling
- Generates flame graphs, speedscope files, live top view, and stack dumps
Watch for
Root or sudo may be required to attach to existing processes
Migration highlight
Generate flame graph for a production web service
Visualize hot paths without restarting, identify bottlenecks, and reduce latency.














