Skip to content

Instantly share code, notes, and snippets.

@knkumar
Created June 30, 2012 06:24
Show Gist options
  • Save knkumar/3022633 to your computer and use it in GitHub Desktop.
Save knkumar/3022633 to your computer and use it in GitHub Desktop.
matlab profiler example
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