Clear Filters
Clear Filters

How good is the accuracy of the Simulink profiler?

2 views (last 30 days)
Hi,
I am dealing with runtime analysis in my Simulink model. I am using Matlab v2019b and I couldn't find detail information on the simulink profiler for this Matlab version.
I would be interesterd in having more details about how accurate it is, as summation to 100% in some cases seems to not be met. For instance the picture depicts the function Outputs.Major of one subsystem I have in my model. The total time spent is 218s but in the partial list below I cannot sum to 218s. That is why I am confused.
Thank you for any help you can provide.
Bests

Answers (1)

Satwik
Satwik on 21 Feb 2024
By looking at the part of the report image provided, it is not clear whether you are looking at the summary or the detailed report, of the profiler. Please ensure you look at the detailed report.
Assuming the discrepancy is in the detailed report, since, I do not have access to the specific details of your model, I cannot state the exact reason for the discrepancy you are observing. But few common reasons why this may have happened could be -
  1. There could be overhead time which the profiler does not attribute to any specific part of the model. This includes time spent to run the profiler itself.
  2. The profiler might use sampling techniques to estimate the time spent in different parts of the model. This can lead to inaccuracies since not every execution cycle is measured.
For more details about the Simulink Profiler, its usage and report details, you may refer to this documentation: https://www.mathworks.com/help/releases/R2019b/simulink/ug/how-profiler-captures-performance-data.html.

Categories

Find more on Manual Performance Optimization in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!