pub struct ComprehensiveStats {
pub stats_snapshot: StatsSnapshot,
pub exchange_stats: ExchangeManagerStats,
pub buffer_stats: BufferPoolStats,
pub buffer_counts: BufferCounts,
pub pipeline_stats: ZerocopyPipelineStats,
pub uptime_nanos: u64,
pub events_processed_total: u64,
pub last_health_check_nanos: u64,
pub last_stats_cleanup_nanos: u64,
}Expand description
Comprehensive statistics combining all subsystems
Fields§
§stats_snapshot: StatsSnapshotLock-free statistics snapshot containing event counts and latency metrics
Provides a consistent view of the system’s processing statistics including events per second, average latency, and throughput metrics.
exchange_stats: ExchangeManagerStatsExchange manager statistics for connection health and performance
Contains detailed statistics about exchange connections, including connection counts, error rates, and exchange-specific metrics.
buffer_stats: BufferPoolStatsLock-free buffer pool statistics for memory management efficiency
Tracks buffer pool hits, misses, and allocation patterns to measure memory management efficiency in high-frequency scenarios.
buffer_counts: BufferCountsCurrent buffer availability counts across all buffer types
Provides real-time counts of available buffers for serialization, compression, and SIMD operations to monitor resource utilization.
pipeline_stats: ZerocopyPipelineStatsZero-copy pipeline statistics for ultra-low-latency processing
Tracks zero-copy operations, memory mappings, and pipeline efficiency metrics to optimize for minimal allocation overhead.
uptime_nanos: u64System uptime in nanoseconds since manager initialization
High-resolution uptime measurement used for calculating throughput and efficiency metrics over the system’s operational lifetime.
events_processed_total: u64Total number of events processed since system start
Atomic counter tracking all market data events processed by the collection manager, used for throughput calculations.
last_health_check_nanos: u64Timestamp of the last health check operation in nanoseconds
Records when the most recent health check was performed to monitor the frequency and timing of system health assessments.
last_stats_cleanup_nanos: u64Timestamp of the last statistics cleanup operation in nanoseconds
Tracks when the system last performed cleanup of old statistical data to ensure efficient memory usage over time.
Implementations§
Source§impl ComprehensiveStats
impl ComprehensiveStats
Sourcepub fn calculate_efficiency_metrics(&self) -> EfficiencyMetrics
pub fn calculate_efficiency_metrics(&self) -> EfficiencyMetrics
Calculate overall system efficiency metrics
Trait Implementations§
Source§impl Clone for ComprehensiveStats
impl Clone for ComprehensiveStats
Source§fn clone(&self) -> ComprehensiveStats
fn clone(&self) -> ComprehensiveStats
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read more