bloomberg/memray
Memray is a memory profiler for Python observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 99
- Release rhythm 84
- 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: 51
- age_days: 1608
- days_rel: 26
- days_push: 11
- n_releases_24m: 12
Adoption not part of the score
15204 stars · 458 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Memray is a memory profiler for Python that tracks memory allocations in Python code, native C/C++ extension modules, and the interpreter itself. It generates reports such as flame graphs, supports live profiling, and integrates with pytest to catch memory regressions.
Use cases
- find memory leaks in a python application
- profile memory usage of python code
- track allocations in C extension modules
- generate flame graphs of memory allocations
- set memory limits per pytest test
- debug high memory usage in python service
- find allocation hotspots slowing down my program
When to choose
- you need full call-stack attribution of allocations, including native C/C++/Rust extensions
- you want flame graphs, live tracking, or per-test memory limits in pytest
- you are debugging memory leaks or high memory usage on Linux or macOS
When to avoid
- you need to profile on Windows or other unsupported platforms
- you only need CPU/time profiling rather than memory profiling
- you need a zero-overhead sampling profiler rather than tracing every allocation
Facets
cli-tool · maturity active
benchmarking monitoring developer-tools cli developer-tools performance python cli memory-profiler profiling memory-leak-detection flame-graphs pytest-plugin native-extensions command-line linux macos
2 sources
- readme: https://github.com/bloomberg/memray · fetched 2026-08-28 · 5e446ce6151c
- homepage: https://bloomberg.github.io/memray/ · fetched 2026-08-29 · 70f786b6b11d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| bloomberg/memray | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="bloomberg/memray")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem