macOS
brew install memraylocal Homebrew formula metadata
brew
Memory profiler for Python applications. Version 1.19.3 via Homebrew; verified 2026-06-22.
install
brew install memraylocal Homebrew formula metadata
sudo apk add memrayAlpine Linux edge package indexes · memray · source: dl-cdn.alpinelinux.org
sudo dnf install memrayFedora Rawhide package metadata · memray · source: dl.fedoraproject.org
nix profile install nixpkgs#memraynixpkgs package indexes · pkgs/by-name/me/memray/package.nix · source: api.github.com
sudo pacman -S memrayArch Linux sync databases · memray · source: geo.mirror.pkgbuild.com
overview
Memory profiler for Python applications
history
Memray is a Bloomberg Python memory profiler that tracks allocations in Python code, native extension modules, and the Python interpreter, then renders reports such as flame graphs, terminal summaries, tables, trees, live views, and stats.
Memray's README and documentation present it as a profiler for allocation tracing rather than sampling alone. It records function call stacks for allocations, can include native C/C++ frames, works with Python threads and native threads, and can be used both as a CLI and as a Python library.
The package entered public Python packaging with a 1.0.0 release on PyPI in April 2022. Its release stream continued through the 1.x line, with GitHub release notes and PyPI metadata showing active maintenance into 2026.
Memray is distributed through Python packaging and system package managers. The upstream README links PyPI, PyPI download statistics, conda-forge, GitHub Actions for wheels, and documentation; the batch input lists apk, Homebrew, Fedora, Nix, and Arch packages. The README also points to `pytest-memray`, which brought Memray into test-suite workflows as well as ad hoc command-line profiling.
The common CLI workflow is `python3 -m memray run -o output.bin my_script.py`, followed by a reporter such as `python3 -m memray flamegraph output.bin`. Users can also run `memray run my_script.py`, use `memray run -m my_module`, enable native tracking with `--native`, attach to processes in supported scenarios, or use the API for finer-grained profiling.
Memray is limited to Linux and macOS. Because it includes a C extension and native tooling, source builds may require dependencies such as libdebuginfod, libunwind, and liblz4, while normal users are steered toward binary wheels from PyPI.
Memray is notable because Python memory profiling often crosses the Python/native boundary. Packaging it means shipping compiled extensions, platform-specific wheels, and native library integration while still exposing a friendly CLI. It is also a useful package-index signal because it bridges Python developers, C-extension debugging, flamegraph tooling, and pytest integration.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
memray | cli | global executable | |
memray3.14 | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://bloomberg.github.io/memray/
install metadata
| Package key | brew:memray |
|---|---|
| Version | 1.19.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/memray |
| Homepage | https://bloomberg.github.io/memray/ |
| Repository | https://github.com/bloomberg/memray |
| Upstream docs | https://bloomberg.github.io/memray |
| License | Apache-2.0 |
| Source archive | https://files.pythonhosted.org/packages/96/04/5b886a36df947599e0f37cd46e6e44e565299815f044e2303ab2ae9f8870/memray-1.19.3.tar.gz |
| Last updated | 2026-06-22T14:05:27-07:00 |
| Pulse | updated |
| Dependencies | lz4, python@3.14 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | memray |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
memray
nix profile install nixpkgs#memraymemray 1.19.1-r2
Memray is a memory profiler for Python
https://bloomberg.github.io/memray/
sudo apk add memraymemray-pyc 1.19.1-r2
Precompiled Python bytecode for memray
https://bloomberg.github.io/memray/
sudo apk add memray-pycmemray 1.13.4-7.fc44
Memory profiler for Python applications
https://bloomberg.github.io/memray/
sudo dnf install memraymemray 1.19.3-1
A memory profiler for Python
https://github.com/bloomberg/memray
sudo pacman -S memraysource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.