pub struct StatsSnapshot {Show 16 fields
pub events_processed: u64,
pub trades_processed: u64,
pub orderbooks_processed: u64,
pub bytes_serialized: u64,
pub simd_batches_processed: u64,
pub buffer_reuse_count: u64,
pub zero_copy_operations: u64,
pub avg_latency_nanos: u64,
pub connection_errors: u64,
pub parsing_errors: u64,
pub serialization_errors: u64,
pub events_per_second: f64,
pub bytes_per_second: f64,
pub compression_ratio: f64,
pub uptime_seconds: f64,
pub exchange_stats: FxHashMap<String, ExchangeStats>,
}Expand description
Snapshot of current statistics (non-atomic for reading)
Fields§
§events_processed: u64Total number of events processed since startup
trades_processed: u64Total number of trade messages processed
orderbooks_processed: u64Total number of orderbook updates processed
bytes_serialized: u64Total bytes serialized for outgoing messages
simd_batches_processed: u64Number of SIMD batches processed for vectorized operations
buffer_reuse_count: u64Number of buffer reuse operations to reduce memory allocations
zero_copy_operations: u64Number of zero-copy operations performed for high-performance data handling
avg_latency_nanos: u64Current average latency in nanoseconds using exponential moving average
connection_errors: u64Total number of connection errors encountered
parsing_errors: u64Total number of parsing errors from malformed messages
serialization_errors: u64Total number of serialization errors during message encoding
events_per_second: f64Current rate of events processed per second
bytes_per_second: f64Current rate of bytes processed per second
compression_ratio: f64Compression ratio achieved for data transmission (0.0 if not calculated)
uptime_seconds: f64Total uptime in seconds since statistics collection started
exchange_stats: FxHashMap<String, ExchangeStats>Per-exchange statistics breakdown
Trait Implementations§
Source§impl Clone for StatsSnapshot
impl Clone for StatsSnapshot
Source§fn clone(&self) -> StatsSnapshot
fn clone(&self) -> StatsSnapshot
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read more