Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/IPC/AdvancedFeatures/
PerformanceStats.rs

1//! Cumulative IPC counters - sent / received message totals,
2//! rolled-up average processing time, peak rate, error count,
3//! and uptime tick. Returned by
4//! `mountain_get_performance_stats`.
5
6use serde::{Deserialize, Serialize};
7
8#[derive(Debug, Clone, Serialize, Deserialize)]
9pub struct Struct {
10	pub total_messages_sent:u64,
11
12	pub total_messages_received:u64,
13
14	pub average_processing_time_ms:f64,
15
16	pub peak_message_rate:u32,
17
18	pub error_count:u32,
19
20	pub last_update:u64,
21
22	pub connection_uptime:u64,
23}