profsave - Save profile report in HTML format

Syntax

profsave
profsave(profinfo)
profsave(profinfo,dirname)

Description

profsave executes the profile('info') function and saves the results in HTML format. profsave creates a separate HTML file for each function listed in the FunctionTable field of the structure returned by profile. By default, profsave stores the HTML files in a subdirectory of the current directory named profile_results.

profsave(profinfo) saves the profiling results, profinfo, in HTML format. profinfo is a structure of profiling information returned by the profile('info') function.

profsave(profinfo,dirname) saves the profiling results, profinfo, in HTML format. profsave creates a separate HTML file for each function listed in the FunctionTable field of profinfo and stores them in the directory specified by dirname.

Examples

Run profile and save the results.

profile on
plot(magic(5))
profile off
profsave(profile('info'),'myprofile_results')

See Also

profile

Profiling for Improving Performance in the MATLAB Desktop Tools and Development Environment documentation

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS