oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
Loading...
Searching...
No Matches
Data Fields
ove_state_tracker Struct Reference

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
 

Detailed Description

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.

Field Documentation

◆ cumul_us

uint64_t ove_state_tracker::cumul_us[OVE_STATE_COUNT]

Cumulative microseconds spent in each state.

◆ last_ts_us

uint64_t ove_state_tracker::last_ts_us

Timestamp of the last transition.

◆ cur_state

int ove_state_tracker::cur_state

Current state index (0..OVE_STATE_COUNT-1).


The documentation for this struct was generated from the following file: