Thread statistics. More...
#include <cmsis-plus/rtos/os.h>
Public Member Functions | |
Constructors & Destructor | |
| statistics ()=default | |
| Construct a thread attributes object instance. | |
| ~statistics ()=default | |
| Destruct the thread attributes object instance. | |
Public Member Functions | |
| rtos::statistics::counter_t | context_switches (void) |
| Get the number of thread context switches. | |
| rtos::statistics::duration_t | cpu_cycles (void) |
| Get the thread execution time. | |
| void | clear (void) |
| Clear the thread statistic counters. | |
Definition at line 893 of file os-thread.h.
|
default |
|
default |
|
inline |
This function sets all statistic counters to zero.
Definition at line 2322 of file os-thread.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 scheduler function, to compute percentages.
Definition at line 2278 of file os-thread.h.
|
inline |
This value can be used together with the corresponding scheduler function, to compute percentages.
Definition at line 2299 of file os-thread.h.