|
oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
|
Per-thread state-occupancy tracker. More...
#include <thread_state_stats.h>
Data Fields | |
| uint64_t | cumul_us [OVE_STATE_COUNT] |
| uint64_t | last_ts_us |
| int | cur_state |
Per-thread state-occupancy tracker.
Accumulates time spent in each of OVE_STATE_COUNT states since init. Call ove_state_track_transition() on every state change to update.
| uint64_t ove_state_tracker::cumul_us[OVE_STATE_COUNT] |
Cumulative microseconds spent in each state.
| uint64_t ove_state_tracker::last_ts_us |
Timestamp of the last transition.
| int ove_state_tracker::cur_state |
Current state index (0..OVE_STATE_COUNT-1).