# pyutils/line_profiler

Line-by-line profiling for Python

Repository: https://github.com/pyutils/line_profiler
Canonical: https://ross.abutalabs.com/products/pyutils-line_profiler
Language: Python
License: NOASSERTION
License Family: other
Last push: 2026-08-14T19:34:06+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 40, longevity 100
- inputs: {"age_days": 2458, "days_push": 19, "days_rel": 190, "gap_med": 198, "n_releases_24m": 4}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3243, forks 140 (observed 2026-08-28T04:07:50.583220+00:00)

## What it is
line_profiler is a Python module for line-by-line profiling of functions, with the kernprof script for running profilers. It is the officially maintained continuation of the original rkern/line_profiler project.

## Use cases
- find slow lines in a python function
- profile a python script line by line
- measure per-line execution time of python code
- debug performance bottlenecks in python functions
- run cProfile via kernprof

## When to choose
- you need finer granularity than cProfile's function-level timing
- you want to decorate specific functions and see per-line hit counts and times
- you want a maintained fork of the original line_profiler

## When to avoid
- you only need function-level profiling, where cProfile suffices
- you need whole-program or statistical sampling profiling
- you are profiling non-Python code

## Facets
- artifact type: library
- maturity: active
- function: benchmarking, developer-tools, cli
- domain: developer-tools, performance
- platform: python, cli, cross-platform
- tags: profiling, line-by-line-profiling, kernprof, performance-analysis, python

## Member repositories
- pyutils/line_profiler (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:50.583220+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-30T07:24:30.264189+00:00, confidence not recorded.
  - readme: https://github.com/pyutils/line_profiler (fetched 2026-08-28T04:07:50.583220+00:00, sha 5f7cca1f51e0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
