Documentation Center

  • Trial Software
  • Product Updates

slprofreport

Regenerate profiler report from data, ProfileData, saved from previous run

Syntax

slprofreport(model_nameProfileData)

Description

When you run a model with the profiler enabled, the simulation generates the data and saves it in the variable, model_nameProfileData. slprofreport(model_nameProfileData) generates a profiler report based on the data in model_nameProfileData, saved from the model run.

Input Arguments

ProfileData

Variable that contains profiler data from a model run. The variable name consists of the model name and ProfileData, for example, vdpProfileData.

Default: None

Examples

expand all

Regenerate Simulink Profiler Results

Regenerate the Profiler report for model vdp

In the MATLAB® Command Window, start the vdp model.

In the Simulink® editor window, run vdp model with Simulink Profiler enabled.

Simulink stores the data to the variable vdpProfileData.

To review the report, in the MATLAB Command Window

slprofreport(vdpProfileData)

The Simulink Profiler Report window is displayed.

Was this topic helpful?