Created
June 30, 2012 06:24
-
-
Save knkumar/3022633 to your computer and use it in GitHub Desktop.
matlab profiler example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function foo | |
profile on | |
% --- | |
% code to profile | |
% --- | |
stats = profile('info'); | |
%save the statistics data for future use | |
save('run_stats','stats'); | |
% save the html report generated - saves as a folder | |
profsave(stats,'run_stats'); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment