MATLAB: Matlab Profiler for RAM

memoryperformanceprofiler

I have a matlab module that I expected to be limited by CPU time, but I can see in task manager that it has very high RAM usage. I know Matlab Profiler can analyse the time spent in various functions, is there a similar tool for RAM usage? Or can profiler be configured to analyse RAM as well?
Related Question