How can I check the performance of a simulink model, which should be compiled for embedded hardware later?

2 ビュー (過去 30 日間)
Hi,
I have a question regarding the performance of a simulink model. I am developing an algorithm, which should be compiled into c-code for embedded hardware later. I developed two different models, both of them have the same task. Now I want to estimate, which one is more efficient regarding the cpu load. Is there any possibility to do this? I already tested the performance advisor and reading the metadata of a simulation ( i.e. the executionElapsedWallTime). But this does not really help, because the execution time can also rise when the computer does other things in the background.
Is there another option, which might help me?

回答 (1 件)

Mark McBroom
Mark McBroom 2024 年 4 月 27 日
You can measure execution time of the generated code on the host computer or on the targer processor using SIL or PIL mode and the execution profile feature: https://www.mathworks.com/help/ecoder/ug/execution-time-profiling-for-sil-and-pil.html

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by