memray
memray copied to clipboard
Support For Extracting RSS and Heap memory usage over time.
Is there an existing proposal for this?
- [x] I have searched the existing proposals
Is your feature request related to a problem?
Users may wish to compute the average RSS and Heap memory usage over time, and there is no simple way to do so as far as I understand from the memray documentation.
Describe the solution you'd like
It looks like there is an html plot of RSS and heap usage over time generated by memray flamegraph. It would be nice if there was an easy way to just extract this plot data and compute the average memory usage from it, or even provide it in a json file for users.
Alternatives you considered
memory-profiler (link) does this with RSS memory usage and is more light weight. It doesn't measure heap memory usage as far as I am aware though.