# py-spy

5 Hacker News commenters recommended py-spy and 0 criticized it, November 2025 to November 2026. It was recommended in 3 of 13 months.

**Verdict:** Recommended as the best tool for finding CPU-hogging Python code, and for its dump command on supported interpreters. No criticism was recorded.

## Why people recommend it

- Finds CPU-hogging Python code (1 comments): "it's the best tool for this if you're looking for cpu-hogging code" ([source](https://news.ycombinator.com/item?id=46455581))
- Dump command for supported interpreters (1 comments): "In python, we have py-spy dump for supported interpreters" ([source](https://news.ycombinator.com/item?id=46753899))

## Alternatives hackers recommend

- [perf](https://hackerapproved.com/p/perf.md): 13 recommend
- [Java Flight Recorder](https://hackerapproved.com/p/java-flight-recorder.md): 10 recommend
- [Instruments](https://hackerapproved.com/p/instruments.md): 9 recommend
- [Perfetto](https://hackerapproved.com/p/perfetto.md): 8 recommend
- [Python 3.15 sampling profiler](https://hackerapproved.com/p/python-3-15-sampling-profiler.md): 6 recommend

## Cite as

Hacker Approved, "py-spy", https://hackerapproved.com/p/py-spy/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
