Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
|
CPU Load Monitoring. More...
Functions | |
int | cpu_load_get (int cpu_id) |
Get the CPU load as a percentage. |
CPU Load Monitoring.
int cpu_load_get | ( | int | cpu_id | ) |
#include <zephyr/cpu_load/cpu_load.h>
Get the CPU load as a percentage.
Return the percent that the CPU has spent in the active (non-idle) state between calls to this function.
cpu_id | The ID of the CPU for which to get the load. |
CPU | load in percent (0-100) in case of success |
-errno | code in case of failure. |