Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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')

See Also

Introduced before R2006a

Was this topic helpful?