Red Cloud with MATLAB/Profiling
Profiling MATLAB code
MATLAB provides the profile command that can be used for debugging and optimizing MATLAB code by tracking execution time. The following describes how to create a profile of your code and create a zip file of the results.
To interactively inspect your code you can run the following then browse the results.
>> profile on >> [Execute your code] >> profile off >> profile viewer
To save the results for later review you can use the profsave function to store the results as HTML files
To save these results to a zip file you can use the zip function:
This creates a zip file “profile_demo.zip” that contains the contents of the folder “profile_demo”.
Additional information is available from MathWorks