Generate execution profiler plot
plot( generates a plot
from the profiler data.
The Execution Profiler and the SLRT Overload Options block use different mechanisms to measure TET and do not generate identical TET values.
Run Profiler and Plot Profiler Data
The real-time application is already loaded. Start the profiler. Start the application.
tg = slrealtime('TargetPC1'); startProfiler(tg); start(tg);
Stop the profiler. Stop the application.
Retrieve profiler data.
profiler_object = getProfilerData(tg);
Processing data, please wait ...
plotfunction on the data.
profiler_object — Object that contains profiler result
MATLAB® variable that you can use to access the result of the profiler execution.
You display the profiler data by calling the
The structure has these 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.
You can access the data in the
profiler_object variable. To
access the profiler data, before running the profiler, open the Configuration
Parameters dialog box. In the Real-Time tab, click
Hardware Settings. Select the Code Generation > Verification > Workspace variable option and set the value to
Select the Save options option and set the value to
All data. After running the profiler, use the technique
described for the
Sections (Embedded Coder) function.
Introduced in R2020b