I tested the standalone application that we developed in Matlab when I noticed that its memory usage, according to the Windows task manager, peaked several times above 16 GB. I decided to start the Matlab profiler using profile -memory on in the scripts behind the compiled version to see where the memory peaks occurred, using the same input. However, the highest peak memory that he discovered was 2400860.00 Kb, or about 1/4, for a function that essentially acts like a main() program.
Thus, I was wondering if people noticed huge differences in memory usage between the running compiled program Matlab and the launch of the original scripts in Matlab. I noticed that much more time has passed in Matlab, but I realized that this is due to the profiler tracking all memory allocations and freeing up memory, instead of reading and writing to the swap space on disk.
memory matlab matlab-deployment matlab-compiler mcc
ackrause
source share