How measure CPU load of lpc55s16 microcontroller #71647
-
Hello everyone, Currently I'm trying to measure CPU load of lpc55s16, Initially I tried to measure the CPU load by using the formula ((Total_thread_execution_time / total_CPU_up_time)*100) using the k_uptime_get() API, but unfortunately k_uptime_get() is not accurate so my calculation is not working as expected, so is there any dedicated API is available in zephyr to measure CPU load? if yes please share that will be really helpful. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @DerekSnell could you please help me on this issue. |
Beta Was this translation helpful? Give feedback.
-
Hi @aravinth-kalai , Let us know how that works for you. Best regards |
Beta Was this translation helpful? Give feedback.
-
Hi @DerekSnell , Thanks for your reply, After searching a lot finally I got this thread analyzer feature in zephyr that helps me to print CPU load of each thread and ideal thread. |
Beta Was this translation helpful? Give feedback.
Hi @DerekSnell ,
Thanks for your reply, After searching a lot finally I got this thread analyzer feature in zephyr that helps me to print CPU load of each thread and ideal thread.