InterChunkGapRecorder class final

Records inter-chunk gap samples and idle-watchdog fires per model.

This is the report/seam half of DataDrivenTuning: #1392's LatencyMeter (chunk timestamps) and the idle-watchdog fire sites feed it; the run report renders renderTuningReport. All methods are cheap (append + counter) and safe to call from stream paths.

Samples are BOUNDED per model (maxSamplesPerModel, review r2): a reasoning-heavy run records thousands of gaps into a process-global, so the recorder keeps the most recent window — percentiles only need order statistics, and the recent tail is the behavior worth tuning against anyway.

Constructors

InterChunkGapRecorder()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
summaries → Map<String, GapSummary>
Every model with recorded data, sorted by model id.
no setter

Methods

clear() → void
Drops all recorded data (test reset / per-run scope).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordGap(String model, Duration gap) → void
Records one gap between consecutive chunks for model.
recordWatchdogFire(String model) → void
Records one idle-watchdog fire for model.
summary(String model) → GapSummary?
The summary for model, or null when nothing was recorded.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

maxSamplesPerModel → const int
The per-model sample window cap.