Finding CPU load in RTOS environment without using external tool

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Finding CPU load in RTOS environment without using external tool

5,981 次查看
kpdeshpande08
Contributor I

Hi,

I am using FreeRTOS component in my SDK application, and I want to measure CPU load. What logic should I write in my application code to calculate CPU usage in RTOS environment and how?

标记 (3)
0 项奖励
回复
1 回复

5,673 次查看
BlackNight
NXP Employee
NXP Employee

FreeRTOS already has that built-in.

See Better FreeRTOS Debugging in Eclipse | MCU on Eclipse , section "Runtime Information".

If you don't want to use Eclipse to visualize the data, then have a look at Tutorial: Using Runtime Statistics with Amazon FreeRTOS V10 | MCU on Eclipse  where I'm using a UART connection to the target with a shell to see how much load is used by each task.

I hope this helps,

Erich

0 项奖励
回复