benfred/py-spy
Sampling profiler for Python programs observed · 2026-08-28
Health v2 · maintenance only
81/100
- Activity 97
- Release rhythm 49
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 269.5
- age_days: 2955
- days_rel: 131
- days_push: 20
- n_releases_24m: 3
Adoption not part of the score
15445 stars · 541 forks observed · 2026-08-28
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-08-28 · e6e2a552dd19
- registry_crates: https://crates.io/api/v1/crates/py-spy · fetched 2026-08-29 · aa99e3c06b95
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| benfred/py-spy | main | 81 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem