# Installer memray avec Homebrew, apk, dnf, Nix, pacman

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de memray pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:memray
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install memray
```

  Preuve: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add memray
```

  Preuve: Alpine Linux edge package indexes: memray from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install memray
```

  Preuve: Fedora Rawhide package metadata: memray from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#memray
```

  Preuve: nixpkgs package indexes: pkgs/by-name/me/memray/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S memray
```

  Preuve: Arch Linux sync databases: memray from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Faits du paquet

- **Clé du paquet:** brew:memray
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/memray>
- **Version:** 1.19.3
- **Résumé source:** Memory profiler for Python applications
- **Page d'accueil:** <https://bloomberg.github.io/memray/>
- **Docs amont:** <https://bloomberg.github.io/memray/>
- **Licence:** Apache-2.0
- **Archive source:** <https://files.pythonhosted.org/packages/96/04/5b886a36df947599e0f37cd46e6e44e565299815f044e2303ab2ae9f8870/memray-1.19.3.tar.gz>
- **Dernière mise à jour:** 2026-06-22T14:05:27-07:00
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- memray (cli)
- memray3.14 (cli)
- memray (alias)
- memray3.14 (alias)

## Dépendances

- lz4
- python@3.14

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 1.19.3
- gestionnaire mis à jour: 2026-06-22
- données locales: OK
- dépôt amont: https://bloomberg.github.io/memray/
- info: Release/tag comparison is only available for GitHub repositories.
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 2022-04-09: memray 1.0.0 uploaded to PyPI.
- 2022: README documents Linux and macOS support, PyPI installation, native allocation tracking, and multiple reporters.
- 2026-04-08: v1.19.3 GitHub release published.

### Related projects

- Related projects include pytest-memray for test integration, PyPI and conda-forge as distribution channels, and native debugging/profiling dependencies such as libunwind, libdebuginfod, and liblz4.

### Sources

- <https://bloomberg.github.io/memray/>
- <https://github.com/bloomberg/memray#readme>
- <https://github.com/bloomberg/memray/releases.atom>
- <https://pypi.org/pypi/memray/json>
- source_facts.package-manager-url


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Détails de la base source

- **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:** stable

## Autres enregistrements de gestionnaires de paquets

- Nix - memray: normalized package name match | nixpkgs package indexes: pkgs/by-name/me/memray/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - memray - 1.19.3-r0: normalized package name match | Alpine Linux edge package indexes: memray from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Memray is a memory profiler for Python | https://bloomberg.github.io/memray/
- apk - memray-pyc - 1.19.3-r0: normalized package name match | Alpine Linux edge package indexes: memray-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for memray | https://bloomberg.github.io/memray/
- dnf - memray - 1.13.4-10.fc45: normalized package name match | Fedora Rawhide package metadata: memray from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Memory profiler for Python applications | https://bloomberg.github.io/memray/
- pacman - memray - 1.19.3-1: normalized package name match | Arch Linux sync databases: memray from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A memory profiler for Python | https://github.com/bloomberg/memray


## Liens liés

- [Source-control packages](https://pkg.so/fr/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/fr/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/fr/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://pkg.so/fr/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [lz4](https://pkg.so/fr/brew/lz4/) - Runtime dependency declared by Homebrew.
- [py-spy](https://pkg.so/fr/brew/py-spy/) - Shares pkgdb curated category or tags: cli, developer-tools, performance, profiling, python.
- [snakeviz](https://pkg.so/fr/brew/snakeviz/) - Shares pkgdb curated category or tags: cli, developer-tools, profiling, python.
- [counts](https://pkg.so/fr/brew/counts/) - Shares pkgdb curated category or tags: cli, developer-tools, performance, profiling.
- [qcachegrind](https://pkg.so/fr/brew/qcachegrind/) - Shares pkgdb curated category or tags: cli, developer-tools, profiling.
- [samply](https://pkg.so/fr/brew/samply/) - Shares pkgdb curated category or tags: cli, developer-tools, performance, profiling.
- [async-profiler](https://pkg.so/fr/brew/async-profiler/) - Shares pkgdb curated category or tags: cli, developer-tools, performance, profiling.
- [parca](https://pkg.so/fr/brew/parca/) - Shares pkgdb curated category or tags: cli, developer-tools, profiling.
- [austin](https://pkg.so/fr/brew/austin/) - Shares pkgdb curated category or tags: cli, developer-tools, profiling, python.
- [gprof2dot](https://pkg.so/fr/brew/gprof2dot/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, performance, profiling.

## Combined YAML source

View the package source record on GitHub. [combined/memray.yml](https://github.com/mxcl/pkgdb/blob/main/combined/memray.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
