macOS
brew install memraylocal Homebrew formula metadata
安装
brew install memraylocal Homebrew formula metadata
sudo apk add memrayAlpine Linux edge package indexes · memray · 来源: dl-cdn.alpinelinux.org
sudo dnf install memrayFedora Rawhide package metadata · memray · 来源: dl.fedoraproject.org
nix profile install nixpkgs#memraynixpkgs package indexes · pkgs/by-name/me/memray/package.nix · 来源: api.github.com
sudo pacman -S memrayArch Linux sync databases · memray · 来源: geo.mirror.pkgbuild.com
概览
Memory profiler for Python applications
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
memray | cli | 全局可执行文件 | |
memray3.14 | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://bloomberg.github.io/memray/
安装元数据
| 软件包键 | brew:memray |
|---|---|
| 版本 | 1.19.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/memray |
| 主页 | https://bloomberg.github.io/memray/ |
| 仓库 | https://github.com/bloomberg/memray |
| 上游文档 | https://bloomberg.github.io/memray |
| 许可证 | Apache-2.0 |
| 源码归档 | https://files.pythonhosted.org/packages/96/04/5b886a36df947599e0f37cd46e6e44e565299815f044e2303ab2ae9f8870/memray-1.19.3.tar.gz |
| 最后更新 | 2026-06-22T14:05:27-07:00 |
| Pulse | updated |
| 依赖 | lz4, python@3.14 |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 memray来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.