pub struct AtomicParserStats {
pub total_parsed: AtomicU64,
pub cache_hits: AtomicU64,
pub cache_misses: AtomicU64,
pub zero_copy_operations: AtomicU64,
pub buffer_reuses: AtomicU64,
pub avg_parse_time_ns: AtomicU64,
pub total_parse_time_ns: AtomicU64,
}Expand description
Lock-free atomic statistics for parser performance
Fields§
§total_parsed: AtomicU64Total messages parsed
cache_hits: AtomicU64Cache hits for message type recognition
cache_misses: AtomicU64Cache misses
zero_copy_operations: AtomicU64Zero-copy operations (no buffer allocation)
buffer_reuses: AtomicU64Buffer reuse count
avg_parse_time_ns: AtomicU64Average parse time (nanoseconds)
total_parse_time_ns: AtomicU64Total parse time (nanoseconds)
Implementations§
Source§impl AtomicParserStats
impl AtomicParserStats
Sourcepub fn to_stats(&self) -> ParserStats
pub fn to_stats(&self) -> ParserStats
Convert atomic stats to regular stats for reading
Trait Implementations§
Source§impl Debug for AtomicParserStats
impl Debug for AtomicParserStats
Auto Trait Implementations§
impl !Freeze for AtomicParserStats
impl RefUnwindSafe for AtomicParserStats
impl Send for AtomicParserStats
impl Sync for AtomicParserStats
impl Unpin for AtomicParserStats
impl UnwindSafe for AtomicParserStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more