How to view execution profiling in SIL test?

3 次查看(过去 30 天)
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!

回答(1 个)

Swastik
Swastik 2023-6-28
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

类别

Help CenterFile Exchange 中查找有关 Verification 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by