Profiling c-code generated from SIMULINK

2 Ansichten (letzte 30 Tage)
Ulrika
Ulrika am 20 Jul. 2014
Beantwortet: Mark McBroom am 10 Dez. 2017
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

Antworten (1)

Mark McBroom
Mark McBroom am 10 Dez. 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.

Kategorien

Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by