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. | |
Thread statistics.
Definition at line 882 of file os-thread.h.
|
default |
Construct a thread attributes object instance.
|
default |
Destruct the thread attributes object instance.
|
inline |
Clear the thread statistic counters.
This function sets all statistic counters to zero.
Definition at line 2311 of file os-thread.h.
|
inline |
Get the number of thread 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 scheduler function, to compute percentages.
Definition at line 2267 of file os-thread.h.
|
inline |
Get the thread execution time.
This value can be used together with the corresponding scheduler function, to compute percentages.
Definition at line 2288 of file os-thread.h.