Description:
Memory profiler for Python applications
|
|
Type: Formula
|
Tracked Since: Dec 28, 2025
|
|
Links:
Homepage |
formulae.brew.sh
|
|
Category: Developer tools
|
|
Tags:
python
profiler
memory
debugging
development
|
|
Install:
brew install memray
|
About:
Memray is a comprehensive memory profiler for Python applications that tracks memory allocations and provides detailed insights into memory usage. It can generate various reports including flame graphs, timeline visualizations, and statistical summaries to help developers identify memory leaks and optimize memory consumption.
|
Key Features:
- Tracks memory allocations and deallocations with low overhead
- Generates multiple report types: flame graphs, timelines, and tabular summaries
- Works with native Python code, C extensions, and native libraries
- Provides memory leak detection and high-water mark analysis
- Supports both live profiling and offline analysis of captured data
|
Use Cases:
- Identifying memory leaks in long-running Python applications
- Optimizing memory usage in data-intensive applications
- Debugging unexpected memory growth in production systems
- Analyzing memory patterns during application development
|
Alternatives:
-
tracemalloc
– Built-in Python module with basic tracking, less comprehensive than Memray
-
memory-profiler
– Line-by-line profiler, focuses on incremental memory usage rather than total allocations
-
objgraph
– Object reference graph generator, more manual analysis required
|
| Detected |
Version |
Rev |
Change |
Commit |
| Mar 31, 2026 8:49am |
|
1 |
REVISION_ONLY |
763e58e0 |
| Sep 15, 2025 12:47am |
|
0 |
VERSION_BUMP |
62667a83 |
| Sep 14, 2024 3:00am |
|
1 |
VERSION_BUMP |
d68f5b8c |
| May 7, 2024 11:40pm |
|
1 |
VERSION_BUMP |
4d9c8144 |
| Apr 11, 2024 2:55am |
|
0 |
VERSION_BUMP |
58347238 |
| Apr 10, 2024 9:51pm |
|
0 |
VERSION_BUMP |
5a6aca73 |
| Nov 23, 2023 11:59am |
|
0 |
NEW |
d709c47e |
|