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