I am working on a project that designs its control algorithm on a Simulink model and generates the code that is then run on a target embedded device.
I am interested in analysing the worst case execution time(WCET) of chunks of my model (divided based on their SampleTime).
The timing model of a target Microcontroller is roughly understood. Since we use Matlab/Embedded coder to generate C-code from the models, Is it possible to run analysis on the generated code to "estimate" WCET?
Does Matlab or anyone provide a toolbox or an addon to do the same?
Estimate need not be accurate to microseconds, A rough estimate is what I am aiming for. Any method that does not involve cataloging the generated code manually for execution time estimation is my ideal solution.
Thanks for any suggestions