MATLAB Function Reference
  Go to function:
    Search    Help Desk 
profreport    Examples   See Also

Generate a profile report

Syntax

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

   1.
Run the profiler for code that computes the Lotka-Volterra predator-prey population model.
   2.
View the structure containing the profile results.
MATLAB returns
   3.
View the contents of the second element in the FunctionTable structure.
MATLAB returns
   4.
Display the profile report from the structure.
MATLAB displays the profile report in your Web browser.

See Also

profile



[ Previous | Help Desk | Next ]