Development Environment    

Saving Profile Reports

When you generate the profile report, use the option to save it. For example,

saves the profile report to the file basename in the current directory. Later you can view the saved results using a Web browser.

Another way to save results is with the info = profile function, which displays a structure containing the profiler results. Save this structure so that later you can generate and view the profile report using profreport(info).

Example Using Structure of Profiler Results

The profiler results are stored in a structure that you can view or access. This example illustrates how you can view the results.

  1. Run the profiler for code that computes the Lotka-Volterra predator-prey population model.
  2. To view the structure containing profiler results, type

    MATLAB returns

  1. You can view and access the contents of the structure. For example, type

    MATLAB displays the FunctionTable structure.

  1. To view the contents of an element in the FunctionTable structure, type, for example,

    MATLAB returns the second element in the structure.

  1. Save the results.
  2. In a later session, to generate the profiler report using the saved results, type

    MATLAB displays the profile report.


 Profile Plot Interfacing with Source Control Systems