benfred/py-spy
Sampling profiler for Python programs observed · 2026-10-08
Health v2 · maintenance only
79/100
- Activity 98
- Release rhythm 42
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 269.5
- age_days: 3003
- days_rel: 179
- days_push: 15
- n_releases_24m: 3
Adoption not part of the score
15553 stars · 552 forks observed · 2026-10-08
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
py-spy is a sampling profiler for Python programs written in Rust. It visualizes where a running Python process spends time without restarting it or modifying code, making it safe for production use.
Use cases
- profile a running python process without restarting it
- generate flame graphs of python program execution
- find which functions are slow in production python code
- view live top functions consuming CPU in a python app
- dump stack traces of a hung python process
- profile python code with native C extensions
When to choose
- you need low-overhead profiling of live or production Python processes
- you want flame graphs or speedscope profiles without code changes
- you need to diagnose hangs or CPU hotspots in CPython 2.3-3.14
When to avoid
- you need deterministic line-by-line tracing or memory profiling
- you profile non-CPython interpreters like PyPy or Jython
- you need an in-process API for programmatic profiling
Facets
cli-tool · maturity stable
benchmarking monitoring developer-tools cli developer-tools performance windows cli rust python profiler sampling-profiler flame-graph python-profiling production-debugging command-line linux macos
2 sources
- readme: https://github.com/benfred/py-spy · fetched 2026-10-08 · e6e2a552dd19
- registry_crates: https://crates.io/api/v1/crates/py-spy · fetched 2026-10-19 · 021460ee2c09
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| benfred/py-spy | main | 79 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem