Reputation: 325
Is there a way to save the contents of profile so MATLAB can reopen the window later? I'm not interested in saving as PDF. If someone has tips on how to get the save as html to actually work like the profile when it is open that would be useful too.
Upvotes: 3
Views: 2007
Reputation: 65460
You can use profsave
to save the results of the profiler as HTML that you can then open and navigate with your web browser.
profile on
% Run your code to profile
profile off
% Path where you want to store the HTML profiler results
html_folder = 'path/to/html';
profsave(profile('info'), html_folder)
Upvotes: 7