How to view execution profiling in SIL test?

1 view (last 30 days)
Jichun Qu
Jichun Qu on 17 May 2013
Answered: Swastik Sarkar on 28 Jun 2023
In Code Generation->SIL and PIL Verrification->Code Profiling, the check box Measure task execution time is checked. However, after SIL runs, I don't know how to view the plot or report of the model's execution time.
Could anyone provide an advice, where and how to configure the settings, so that I'm able to see it?
Thanks!

Answers (1)

Swastik Sarkar
Swastik Sarkar on 28 Jun 2023
There are 2 ways to open a report of a SIL execution profile
  1. GUI Way: Using SIL/PIL Manager, when you execute a SIL Simulation a task profiling summary report is generated after the SIL Simulation is complete. However it is only a summary, you can click on the matlab icons in statistics to view more about it. You can read more about it from Configure and Run SIL Simulation
2. Command-line way: Assuming the simulation output is exported to the workspace with a variable name "out", you can
run the following commands to view the execution profile report
coder.profile.show(out.executionProfile); % After that click on "Open Report" in the results toolbar
% Or you can also directly execute the following command to generate the
% report
report(out.executionProfile);
You can read more about the report from Code Execution Profiling Report

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!