Skip to content

profsave

matlab_compat · scripts/matlab_compat/profsave.m

: profsave ()
: profsave (profInfo)
: profsave (profInfo, dirname)

Save a static HTML profile report.

With no arguments, writes profile ("info") into profile_results/ under the current directory. When profInfo is supplied it must be a struct with a FunctionTable field (as returned by profile ("info")). dirname names the output directory; it is created if missing.

The stub report is index.html listing each function name, total time, and call count. When profexport is available it is used for a fuller multi-page report.