Expand description
Statistics aggregation for irtt-client events.
StatsCollector consumes irtt_client::ClientEvent values through
StatsCollector::process and produces a cumulative Snapshot, plus
optional count- and time-based rolling snapshots, for reporting and
integration code.
§Retention modes
StatsConfig selects between two retention modes via SampleMode.
StatsConfig::finite (SampleMode::Exact) retains an exact sample per
timing metric, so every metric reports an exact median once it has
samples; retention grows with the number of probes processed. This is the
default and suits a run with a known, bounded duration.
StatsConfig::continuous (SampleMode::RunningOnly) keeps only
running statistics — no exact median — and bounds its adjacent-sequence
IPDV tracking, so memory stays bounded for a long-running or unbounded
session. An enabled time-based rolling window has no item cap and is not
hard-bounded; it expires only when new events arrive. Rolling snapshots
always use running statistics regardless of this setting.
See examples/ in the repository for a runnable comparison of both modes.
Structs§
- Event
Counts - Counts of normalized client events.
- Event
Stats Update - Per-event statistics produced by
StatsCollector::process. - Ipdv
Pair Update - Adjacent-sequence IPDV pair completed by a processed event.
- Ipdv
Stats - Inter-packet delay variation statistics.
- Loss
Stats - Packet loss, duplicate, and late-packet statistics.
- OneWay
Delay Stats - One-way delay statistics.
- Packet
Counts - Packet, byte, and server-reported receive counters.
- RttStats
- Round-trip time statistics.
- Server
Processing Stats - Server processing time statistics.
- Snapshot
- Point-in-time statistics summary.
- Stats
Collector - Stateful statistics collector for
irtt-clientevents. - Stats
Config - Configuration for statistics collection.
- Time
Stats - Summary statistics for timing values.
Enums§
- Late
Reply Mode - Whether a matched late reply contributes measurements.
- Sample
Mode - Controls whether exact timing samples are retained.
Constants§
- VERSION
- Cargo package version of this compiled library.