This MR contains the additions to output the allocated memory within RAM_ANALYSIS and a script mem_analysis.m to plot figures like the one below.
If you think this could be useful I thought we could include it.