| MATLAB Function Reference | Search  Help Desk |
| profreport | Examples See Also |
Syntax
profreport profreport(basename) profreport(stats) profreport(basename,stats)
Description
profreport
suspends the profiler, generates a profile report in HTML format using the current profiler results, and displays the report in your Web browser.
profreport(basename)
suspends the profiler, generates a profile report in HTML format using the current profiler results, saves the report using the basename you supply, and displays the report in your Web browser. Because the report consists of several files, do not provide an extension for basename.
profreport(stats)
suspends the profiler, generates a profile report in HTML format using the profiler results info, and displays the report in your Web browser. stats is the profiler information structure returned by stats = profile('info').
profreport(basename,stats)
suspends the profiler, generates a profile report in HTML format using the profiler results stats, saves the report using the basename you supply, and displays the report in your Web browser. stats is the profiler information structure returned by stats = profile('info'). Because the report consists of several files, do not provide an extension for basename.
Examples
profile on -detail builtin -history
[t,y] = ode23('lotka',[0 2],[20;20]);
stats = profile('info')
stats =
FunctionTable: [28x1 struct]
FunctionHistory: [2x774 double]
ClockPrecision: 0.01000000000022
FunctionTable structure.
stats.FunctionTable(2)
ans =
FunctionName: 'ode23'
MfileName: [1x56 char]
Type: 'M-function'
NumCalls: 1
TotalTime: 0.42100000000028
TotalRecursiveTime: 0.42100000000028
Children: [21x1 struct]
Parents: [0x1 struct]
ExecutedLines: [159x3 double]
profreport(stats)
See Also
profile