pub struct FastPathMetrics {
pub fast_path_hits: u64,
pub slow_path_hits: u64,
pub lockfree_operations: u64,
pub contention_events: u64,
}
Expand description
Performance metrics for fast path effectiveness.
Fields§
§fast_path_hits: u64
§slow_path_hits: u64
§lockfree_operations: u64
§contention_events: u64
Implementations§
Source§impl FastPathMetrics
impl FastPathMetrics
Sourcepub fn effectiveness_ratio(&self) -> f64
pub fn effectiveness_ratio(&self) -> f64
Calculate fast path effectiveness ratio.
Sourcepub fn lockfree_ratio(&self) -> f64
pub fn lockfree_ratio(&self) -> f64
Calculate lock-free operation ratio.
Auto Trait Implementations§
impl Freeze for FastPathMetrics
impl RefUnwindSafe for FastPathMetrics
impl Send for FastPathMetrics
impl Sync for FastPathMetrics
impl Unpin for FastPathMetrics
impl UnwindSafe for FastPathMetrics
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