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 subfolder of the current folder 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 folder specified by dirname.

Examples

Run profile and save the results.

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