ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
pc_latency_stat Struct Reference

Rolling latency statistics in microseconds: sample count, min / max / mean, and how many samples blew a budget. Fixed size, no heap; a subsystem (the preempting queue, a DMA path, a forwarding rule) keeps one and reports it for real-time visibility. More...

#include <clock.h>

Public Attributes

uint32_t count
 
uint32_t over_budget
 samples whose latency exceeded the budget
 
uint32_t min_us
 
uint32_t max_us
 
uint64_t sum_us
 

Detailed Description

Rolling latency statistics in microseconds: sample count, min / max / mean, and how many samples blew a budget. Fixed size, no heap; a subsystem (the preempting queue, a DMA path, a forwarding rule) keeps one and reports it for real-time visibility.

Definition at line 172 of file clock.h.

Member Data Documentation

◆ count

uint32_t pc_latency_stat::count

Definition at line 174 of file clock.h.

Referenced by pc_lat_avg_us(), pc_lat_end(), and pc_lat_reset().

◆ over_budget

uint32_t pc_latency_stat::over_budget

samples whose latency exceeded the budget

Definition at line 175 of file clock.h.

Referenced by pc_lat_end(), and pc_lat_reset().

◆ min_us

uint32_t pc_latency_stat::min_us

Definition at line 176 of file clock.h.

Referenced by pc_lat_end(), and pc_lat_reset().

◆ max_us

uint32_t pc_latency_stat::max_us

Definition at line 177 of file clock.h.

Referenced by pc_lat_end(), and pc_lat_reset().

◆ sum_us

uint64_t pc_latency_stat::sum_us

Definition at line 178 of file clock.h.

Referenced by pc_lat_avg_us(), pc_lat_end(), and pc_lat_reset().


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