memray

Memory profiler for Python applications to track allocations

brewmacoslinux
Try with needOr install directly
Source

About

Memory profiler for Python applications

Commands

memray

Examples

Profile a Python script and generate a flamegraph$ memray run -o profile.bin script.py && memray flamegraph profile.bin
Analyze memory allocations in an interactive table view$ memray run script.py && memray table profile.bin
Profile a Python module directly$ memray run -m module_name