Skip to main content

Mountain/IPC/Common/
PerformanceMetrics.rs

1#![allow(non_snake_case)]
2
3//! # IPC Performance Metrics
4//!
5//! Two complementary observation primitives:
6//!
7//! - `PerformanceMetrics::Struct` - mixed snapshot of throughput, latency (avg
8//!   + peak), success rate, compression, pool, and host resource counters. The
9//!   natural shape for a single point-in-time readout
10//!   (`get_performance_metrics` Tauri command).
11//! - `ThroughputMetrics::Struct` - directional message/byte counters pinned to
12//!   a `StartTime`. The natural shape for rate calculations over a window.
13//!
14//! Both files use `pub struct Struct` so callers spell the full
15//! reverse-hierarchical path:
16//! `IPC::Common::PerformanceMetrics::PerformanceMetrics::Struct`.
17//!
18//! TODO: zero callers as of 2026-05-02. `IPC::StatusReporter` defines
19//! its own `PerformanceMetrics` struct with a different shape; the two
20//! should converge in a future batch.
21
22pub mod PerformanceMetrics;
23pub mod ThroughputMetrics;