Measing the execution time of S-Function entry points
이전 댓글 표시
I have a significant number of S-Functions and I would like to measure how long it takes them to execute during an update or RTW CTRL+B operation.
I was thinking it would be nice to have the following logic:
mdlInitializeSampleTimes ()
{
measure time
Do operations
take diff of measured time
print diff'd time to stdout
}
How would I go about doing this within the S-Function environment?
답변 (1개)
Kaustubha Govind
2011년 9월 20일
0 개 추천
I don't believe the S-function API itself provides any profiling mechanism. However, you should be able to profile your operations using any generic profiling infrastructure (that you might use in standalone C code, for example).
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!