| MATLAB Function Reference | ![]() |
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 a 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 a 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 a 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 a 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
Run profiler and view the structure containing profile results.
profile on -detail builtin -history
[t,y] = ode23('lotka',[0 2],[20;20]);
stats = profile('info')
stats =
FunctionTable: [42x1 struct]
FunctionHistory: [2x830 double]
ClockPrecision: 0.0100
Name: 'MATLAB'
ans =
FunctionName: 'horzcat'
FileName: ''
Type: 'Builtin-function'
NumCalls: 43
TotalTime: 0
TotalRecursiveTime: 0
Children: [0x1 struct]
Parents: [2x1 struct]
ExecutedLines: [0x3 double]
See Also
Improving M-File Performance: the Profiler" in Using MATLAB
| profile | propedit | ![]() |