# pythonprofilers/memory_profiler

Monitor Memory usage of Python code

Repository: https://github.com/pythonprofilers/memory_profiler
Canonical: https://ross.abutalabs.com/products/memory_profiler
Homepage: http://pypi.python.org/pypi/memory_profiler
Language: Python
License: NOASSERTION
License Family: other
Last push: 2024-04-29T15:39:56+00:00

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

## Adoption (not part of the score)
Stars 4575, forks 385 (observed 2026-08-28T04:08:53.674087+00:00)

## What it is
A pure Python module for monitoring memory consumption of a process, including line-by-line analysis of memory usage in Python programs. It includes the mprof tool for running executables and plotting full memory usage reports over time.

## Use cases
- profile memory usage of python code line by line
- find which lines of my python function allocate the most memory
- plot memory usage of a python executable over time
- debug memory leaks in a python script
- monitor memory consumption of a python process

## When to choose
- you need line-by-line memory attribution for Python functions
- you want a simple pip-installable profiler with plotting via mprof
- you are debugging memory growth or leaks in Python code

## When to avoid
- you need actively maintained tooling - the project is no longer actively maintained
- you need CPU or wall-time profiling rather than memory
- you need profiling for non-Python code

## Facets
- artifact type: library
- maturity: maintenance
- function: monitoring, benchmarking, developer-tools
- domain: developer-tools, performance
- platform: python, cli, cross-platform
- tags: memory-profiling, profiler, psutil, line-by-line-analysis, mprof, python

## Member repositories
- pythonprofilers/memory_profiler (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:53.674087+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:19:56.430804+00:00, confidence not recorded.
  - readme: https://github.com/pythonprofilers/memory_profiler (fetched 2026-08-28T04:08:53.674087+00:00, sha 834387d8fa18)
  - homepage: http://pypi.python.org/pypi/memory_profiler (fetched 2026-08-29T09:05:25.159290+00:00, sha 0f682df04b6c)
  - registry_pypi: https://pypi.org/pypi/memory_profiler/json (fetched 2026-08-29T09:05:25.168229+00:00, sha 942929b225e1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
