2392592_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2392592_en-US

2392592_en-US

How to measure CPU load for S32G399 baremetal application on S32DS

Hi everyone,

I would like to know how to measure CPU load for S32G399 while it is running. 

Background: my S32G399 project is a four-core M7 baremetal one with one ELF file which is developed on S32DS3.5.10. I use a custom bootloader to boot up A53 and M7 which has been implemented. My request is measuring CPU load on M7 end. I have S32 Debug Probe on hand, so I can attach to my M7 application while it is running. However, I don't know the detailed steps/way to measure the load. I even don't know if it is feasible only using S32 Debug Probe to reach this goal. 

Hopefully someone can provide relevant document or some guidance.

Thank you.

Re: How to measure CPU load for S32G399 baremetal application on S32DS

Hello, @Yang_C 

Thanks for your post.

1. From my understanding, solely depend on the debugger may not obtain run time CPU load accurately.

2. It is possible to add some code to your own application, for example, to enable timer, then measure the time executing your main task, at last. calculate the portion of (executing time)/(running time) to evaluate the rough CPU load.



BR

Chenyin

Re: How to measure CPU load for S32G399 baremetal application on S32DS

Thank you very much. I will try code-side measuring.

Tags (1)
No ratings
Version history
Last update:
yesterday
Updated by: