Scheduler statistics. More...
Functions | |
rtos::statistics::counter_t | context_switches (void) |
Get the total number of context switches. More... | |
rtos::statistics::duration_t | cpu_cycles (void) |
Get the total duration of all threads. More... | |
Scheduler statistics.
|
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 1044 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 1069 of file os-sched.h.