Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
k_cycle_stats Struct Reference

Structure used to track internal statistics about both thread and CPU usage. More...

#include <stats.h>

Data Fields

uint64_t total
 total usage in cycles
 
bool track_usage
 true if gathering usage stats
 
Fields available when CONFIG_SCHED_THREAD_USAGE_ANALYSIS is selected.
uint64_t current
 # of cycles in current usage window
 
uint64_t longest
 # of cycles in longest usage window
 
uint32_t num_windows
 # of usage windows
 

Detailed Description

Structure used to track internal statistics about both thread and CPU usage.

Field Documentation

◆ current

uint64_t k_cycle_stats::current

# of cycles in current usage window

◆ longest

uint64_t k_cycle_stats::longest

# of cycles in longest usage window

◆ num_windows

uint32_t k_cycle_stats::num_windows

# of usage windows

◆ total

uint64_t k_cycle_stats::total

total usage in cycles

◆ track_usage

bool k_cycle_stats::track_usage

true if gathering usage stats


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