MATLAB Function Reference    
profreport

Generate profile report

Syntax

Description

profreport suspends the profile function, generates a profile report in HTML format using the current profile results, and displays the report in a Web browser. This presents the information in a different format from the Profiler reports.

profreport(basename) suspends profile, generates a profile report in HTML format using the current profile 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 profile, generates a profile report in HTML format using the info results from profile, and displays the report in a Web browser. Here, stats is the profile information structure returned by stats = profile('info').

profreport(basename,stats) suspends profile, generates a profile report in HTML format using the stats result from profile, saves the report using the basename you supply, and displays the report in a Web browser. Here, stats is the profile information structure returned by stats = profile('info'). Because the report consists of several files, do not provide an extension for basename.

Examples

Run profile and view the structure containing profile results.

  1. Run profile for code that computes the Lotka-Volterra predator-prey population model.
  2. View the structure containing the profile results.
  1. MATLAB returns

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

  1. Display the profile report from the structure.
  1. MATLAB displays the profile report in a Web browser.

See Also

profile

Measuring Performance" and "The profile Function" in MATLAB Programming documentation


  profile propedit