memray
« Back to VersTracker
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
Version History
Detected Version Rev Change Commit
Sep 15, 2025 12:47am 0 VERSION_BUMP 62667a83
Sep 14, 2024 3:00am 1 VERSION_BUMP d68f5b8c