# rkern/line_profiler

(OLD REPO) Line-by-line profiling for Python - Current repo ->

Repository: https://github.com/rkern/line_profiler
Canonical: https://ross.abutalabs.com/products/line_profiler
Homepage: https://github.com/pyutils/line_profiler
Language: Python
License: NOASSERTION
License Family: other
Archived: true
Last push: 2021-10-26T14:48:47+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4385, "days_push": 1772, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3585, forks 254 (observed 2026-08-28T04:08:11.081549+00:00)

## What it is
line_profiler is a Python module for line-by-line profiling of functions, and kernprof is a companion script for running it or the standard library's cProfile. This original rkern repository is unmaintained; the official continuation lives at pyutils/line_profiler.

## Use cases
- find which line of a Python function is slow
- profile numpy-heavy code that cProfile misses
- time individual lines inside a function
- locate hotspots in scientific computing code
- run cProfile conveniently with kernprof

## When to choose
- you need finer granularity than cProfile's function-level timing
- a single line inside a large function is the suspected bottleneck
- you are profiling vectorized numpy operations

## When to avoid
- you want an actively maintained version - use pyutils/line_profiler instead
- you only need function-level profiling - cProfile suffices
- you cannot build C extensions and need the old install-from-source flow

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

## Member repositories
- rkern/line_profiler (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:11.081549+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-29T18:33:55.676575+00:00, confidence not recorded.
  - readme: https://github.com/rkern/line_profiler (fetched 2026-08-28T04:08:11.081549+00:00, sha 71da382ca15d)
  - homepage: https://github.com/pyutils/line_profiler (fetched 2026-08-29T09:27:20.779389+00:00, sha faaf16936466)
- Data as of 2026-08-30T08:39:29.467469+00:00.
