Profiling c-code generated from SIMULINK
3 views (last 30 days)
Show older comments
I would like to do profiling (measure execution time and possibly RAM and ROM usage) on the c code generated form my SIMULINK model by using the embedded coder.
From the information on Mathworks website I found that one can do this by configuring the Code generation < Verification pane, in the Configuration Parameters dialog box.
However, I cannot find any Verification pane in my Configuration Parameters dialog box.
I have a license for the embedded coder. Do I need any add-on (perhaps the Validation and Verification toolbox?) to be able to perform the c code profiling? If this is the case, is there any other way I can perform the c-code profiling using other tools in SIMULINK or MATLAB?
Thanks for your help, Ulrika
0 Comments
Answers (1)
Mark McBroom
on 10 Dec 2017
You have found the correct approach for profiling code generated by Embedded Coder. Additional software licenses are not required. This link provides details. Note that if you want to collect execution time on a targer processor using Processor in the Loop (PIL) mode, you will need to write a small amount of code to define a timer on the embedded processor.
0 Comments
See Also
Categories
Find more on Test Model Components 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!