pub struct TaskStatsEntry {
pub task_id: TaskId,
pub p50_ns: u64,
pub p95_ns: u64,
pub p99_ns: u64,
pub min_ns: u64,
pub max_ns: u64,
pub max_jitter_ns: u64,
pub max_lateness_ns: u64,
pub overrun_count: u64,
}Expand description
Aggregated statistics for a single task, produced by a pull snapshot.
Precision contract. min_ns/max_ns are exact (REQ_0105) and
are the values to use for any threshold or regression decision. The
percentile fields (p50_ns, p95_ns, p99_ns) are octave-bucket
estimates from the taktora-stats histogram, carrying up to
PERCENTILE_MAX_REL_ERR_PCT
relative error — they locate the order of magnitude, not the exact
figure. (REQ_0100’s ≤ 1% target awaits a sub-octave histogram.)
Fields§
§task_id: TaskIdIdentifier of the task these statistics belong to.
p50_ns: u64Estimated 50th-percentile execution duration in nanoseconds (octave-bucket estimate; see the struct-level precision contract).
p95_ns: u64Estimated 95th-percentile execution duration in nanoseconds (octave-bucket estimate; see the struct-level precision contract).
p99_ns: u64Estimated 99th-percentile execution duration in nanoseconds (octave-bucket estimate; see the struct-level precision contract).
min_ns: u64Exact minimum execution duration observed (REQ_0105).
max_ns: u64Exact maximum execution duration observed (REQ_0105).
max_jitter_ns: u64Peak jitter (maximum |actual_period − period|) observed (REQ_0101).
max_lateness_ns: u64Peak (unsigned) deadline lateness observed (REQ_0106).
overrun_count: u64Number of times this task exceeded its execution deadline (REQ_0102),
read from the per-task overrun counter.
Trait Implementations§
Source§impl Clone for TaskStatsEntry
impl Clone for TaskStatsEntry
Source§fn clone(&self) -> TaskStatsEntry
fn clone(&self) -> TaskStatsEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more