Command-line tool
memray
brew/memray
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Memory profiler for Python applications
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
pipx install memray
macOS
brew install memray pipx install memray
Linux
brew install memray pipx install memray
Run a Python file and track memory usage
memray run path/to/file.py
Run a [m]odule and track memory usage
memray run -m module_name
Specify an output name
memray run -o path/to/output_file.bin path/to/file.py
Related command-line tools
- snakeviz
Web-based viewer for Python profiler output - mtuner
A C/C++ memory profiler and memory leak finder for Windows, PlayStation 4 and 3, Android and other platforms. - py-spy
Sampling profiler for Python programs - dottrace-clt
JetBrains dotTrace Command Line Tools that enable analyzing performance of .NET applications outside of Visual Studio. - pyoxidizer
Modern Python application packaging and distribution tool - inbac
Python application for fast interactive image cropping - honcho
Python clone of Foreman, for managing Procfile-based applications - pyinstaller
Bundle a Python application and all its dependencies
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents