The following example, with the slAccelDemoF14 model, illustrates the use of Simulink® Accelerator™ profiler feature.
To activate the Simulink® Profiler, in the Simulink Editor, on the Debug tab, under Performance Advisor, click Activate Profiler. You can also issue a
set_param command at the MATLAB® command prompt.
modelName = 'slAccelDemoF14'; load_system(modelName) set_param(modelName,'Profile','on')
While the simulation runs, the profiler is collecting data for the report. Once the simulation is complete it creates an HTML report.
The generated report consists of a summary HTML-files. Hyperlinks in the summary enable you to review the detailed timing information for each function.
Close the model.