Data returned from profiler
Internal format returned by profiler and displayed by using public functions.
The Code Execution Profiling Report displays model execution profile results by task.
To display the profile data for a section of the model, click the membrane button next to the report 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 .
The Execution Profiler and the SLRT Overload Options block use different mechanisms to measure TET and do not generate identical TET values.
The maximum log file size for the profiler data is 1024 MB.
Run Profiler and Explicitly Display Profiler Data
Load the application. Start the profiler. Start the
application. Stop the profiler. Retrieve profile execution data. Call
plot on the data.
tg = slrealtime('TargetPC1'); slbuild('slrt_ex_mds_and_tasks'); load(tg,'slrt_ex_mds_and_tasks'); startProfiler(tg); start(tg);
profiler_object = getProfilerData(tg);
Processing data on target computer, please wait ... Transferring data from target computer to host computer, please wait ... Processing data on host computer, please wait ... Code execution profiling data for model slrt_ex_mds_and_tasks.
Introduced in R2020b