Scheduler statistics.
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. | |
|
inline |
This function sets all statistic counters to zero.
Definition at line 1075 of file os-sched.h.
|
inline |
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 1027 of file os-sched.h.
Referenced by os_sched_stat_get_context_switches().
|
inline |
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 1052 of file os-sched.h.
Referenced by os_sched_stat_get_cpu_cycles().