Skip to main content

Crate irtt_stats

Crate irtt_stats 

Source
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§

EventCounts
Counts of normalized client events.
EventStatsUpdate
Per-event statistics produced by StatsCollector::process.
IpdvPairUpdate
Adjacent-sequence IPDV pair completed by a processed event.
IpdvStats
Inter-packet delay variation statistics.
LossStats
Packet loss, duplicate, and late-packet statistics.
OneWayDelayStats
One-way delay statistics.
PacketCounts
Packet, byte, and server-reported receive counters.
RttStats
Round-trip time statistics.
ServerProcessingStats
Server processing time statistics.
Snapshot
Point-in-time statistics summary.
StatsCollector
Stateful statistics collector for irtt-client events.
StatsConfig
Configuration for statistics collection.
TimeStats
Summary statistics for timing values.

Enums§

LateReplyMode
Whether a matched late reply contributes measurements.
SampleMode
Controls whether exact timing samples are retained.

Constants§

VERSION
Cargo package version of this compiled library.