Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/Common/
PerformanceMetrics.rs

1//! # IPC Performance Metrics
2//!
3//! Two complementary observation primitives:
4//!
5//! - `PerformanceMetrics::Struct` - mixed snapshot of throughput, latency (avg
6//!   + peak), success rate, compression, pool, and host resource counters. The
7//!   natural shape for a single point-in-time readout
8//!   (`get_performance_metrics` Tauri command).
9//! - `ThroughputMetrics::Struct` - directional message/byte counters pinned to
10//!   a `StartTime`. The natural shape for rate calculations over a window.
11//!
12//! Both files use `pub struct Struct` so callers spell the full
13//! reverse-hierarchical path:
14//! `IPC::Common::PerformanceMetrics::PerformanceMetrics::Struct`.
15//!
16//! ## Status
17//!
18//! 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;
23
24pub mod ThroughputMetrics;