cancel
Showing results for 
Search instead for 
Did you mean: 

How to see what percentage of CPU is used when a program is running

UTANG.1
Associate II

Bonjour,

How to see what percentage of CPU is used on a stm32h7 when a program is running?

Ulysse

2 REPLIES 2
berendi
Principal

If you do not have any low power mode implemented, then the CPU is used 100% of the time. It is always doing something, isn't it?

If you are using some low power mode, you might be able to check some timers when entering and exiting low power mode. Be sure to select a timer which is not stopped while the system is in low power mode.

You'd need to create your own methods for evaluating this. Typically you'd determine how much time was spent in the idle task of an RTOS

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..