Scheduler statistics. More...
Functions | |
void | clear (void) |
rtos::statistics::counter_t | context_switches (void) |
Get the total number of context switches. | |
rtos::statistics::duration_t | cpu_cycles (void) |
Get the total duration of all threads. | |
Scheduler statistics.
|
inline |
This function sets all statistic counters to zero.
Definition at line 1110 of file os-sched.h.
|
inline |
Get the total number of context switches.
Each time the scheduler performs a context switch, it increments the thread counter and the scheduler total counter.
This value can be used together with the corresponding thread function, to compute percentages.
Definition at line 1062 of file os-sched.h.
|
inline |
Get the total duration of all threads.
For Cortex-M ports, this value is usually derived from the clock that drives the SysTick, which most of the times is the system clock.
This value can be used together with the corresponding thread function, to compute percentages.
Definition at line 1087 of file os-sched.h.