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 Profile plot shows the allocation of execution cycles across the four processors, indicated by the colored horizontal bars. The Code Execution Profiling Report lists the model sections. The numbers underneath the bars indicate the processor cores.
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);
rocessing 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.