report

Generate profiler report

Description

example

report(profiler_object) generates a report from the profiler data.

The Code Execution Profiling Report displays model execution profile results for each task.

  • To display the profile data for a section of the model, click the Membrane button  next to the section.

  • To display the TET data for the section in the Simulation Data Inspector, click the Plot time series data button .

  • To view the section in Simulink® Editor, click the link next to the Expand Tree button .

  • To view the lines of generated code corresponding to the section, click the Expand Tree button and then click the View Source button .

Examples

collapse all

Starts the profiler, stops the profiler, and retrieves results data. Calls report on the results data. The real-time application dxpcmds6t is already loaded.

tg = slrt;
startProfiler(tg);
start(tg);
stopProfiler(tg);
stop(tg);
profiler_object = getProfilerData(tg);
Processing data, please wait ...
report(profiler_object);

Input Arguments

collapse all

MATLAB® variable using which you can access the result of the profiler execution. You display the profiler data by calling the plot and report functions.

The structure has the following fields:

  • TargetName — Name of target computer in target computer settings.

  • ModelInfo — Information about model on which profiler ran:

    • ModelName — Name of real-time application.

    • MATLABRelease — MATLAB release under which model was built.

    • KernelStamp — Timestamp of target computer kernel build.

    • Display — Display mode of target computer kernel. One of Graphics and Text.

    • BootMode — Boot mode of target computer kernel. One of Normal and Standalone.

You can access the data in the profiler_object variable. To access the profiler data, before running the profiler, open the Configuration Parameters. In the Real-Time tab, click Hardware Settings. Select the Code Generation > Verification > Workspace variable option and set the value to executionProfile. Select the Save options option and set the value to All data. After running the profiler, use the technique described for the Sections function.

Introduced in R2017b