MATLAB Function Reference    
profreport

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 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.

  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

  1. View the contents of the second element in the FunctionTable structure.

    MATLAB returns

  1. Display the profile report from the structure.

    MATLAB displays the profile report in a Web browser.

See Also

profile

Improving M-File Performance: the Profiler" in Using MATLAB


 profile propedit