# joerick/pyinstrument

🚴 Call stack profiler for Python. Shows you why your code is slow!

Repository: https://github.com/joerick/pyinstrument
Canonical: https://ross.abutalabs.com/products/pyinstrument
Homepage: https://pyinstrument.readthedocs.io/
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: python, django, profiler, performance, profile, async
Last push: 2026-08-04T09:54:01+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 83, longevity 100
- inputs: {"age_days": 4556, "days_push": 29, "days_rel": 35, "gap_med": 77, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8006, forks 299 (observed 2026-08-28T04:10:11.553965+00:00)

## What it is
pyinstrument is a call stack profiler for Python that helps identify why code is slow. It supports profiling scripts, async code, Django apps, and Jupyter notebooks, and renders statistical profiles as text or HTML reports.

## Use cases
- profile a slow python script
- find performance bottlenecks in my code
- profile async python code
- profile django request performance
- profile code in a jupyter notebook
- generate an html flame report of a python program

## When to choose
- you want a statistical call stack profiler with low overhead
- you need to profile async or Django code
- you want readable text or HTML profile reports

## When to avoid
- you need line-level or deterministic tracing detail
- you are profiling inside Docker where timing may be inaccurate
- you need profiling for languages other than Python

## Facets
- artifact type: library
- maturity: active
- function: benchmarking, developer-tools
- domain: developer-tools, performance, web-development
- platform: python, cross-platform, cli
- tags: profiler, call-stack, django, async, jupyter, performance-analysis

## Member repositories
- joerick/pyinstrument (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:11.553965+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:32:13.908601+00:00, confidence not recorded.
  - readme: https://github.com/joerick/pyinstrument (fetched 2026-08-28T04:10:11.553965+00:00, sha 839550c99404)
- Data as of 2026-08-30T08:39:29.467469+00:00.
