pub struct FastPathEfficiencyMetrics {
pub fast_path_allocations: usize,
pub slow_path_allocations: usize,
pub fast_path_ratio: u8,
pub avg_cache_hit_ratio: u8,
pub total_cache_accesses: usize,
}Expand description
Snapshot of fast-path cache efficiency metrics.
Fields§
§fast_path_allocations: usizeNumber of allocations served from fast-path caches.
slow_path_allocations: usizeNumber of allocations requiring slow path (miss or disabled).
fast_path_ratio: u8Ratio of fast-path allocations as a percentage (0-100).
avg_cache_hit_ratio: u8Average cache hit ratio across active size classes (0-100).
total_cache_accesses: usizeTotal cache accesses (hits + misses).
Trait Implementations§
Source§impl Clone for FastPathEfficiencyMetrics
impl Clone for FastPathEfficiencyMetrics
Source§fn clone(&self) -> FastPathEfficiencyMetrics
fn clone(&self) -> FastPathEfficiencyMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FastPathEfficiencyMetrics
Auto Trait Implementations§
impl Freeze for FastPathEfficiencyMetrics
impl RefUnwindSafe for FastPathEfficiencyMetrics
impl Send for FastPathEfficiencyMetrics
impl Sync for FastPathEfficiencyMetrics
impl Unpin for FastPathEfficiencyMetrics
impl UnsafeUnpin for FastPathEfficiencyMetrics
impl UnwindSafe for FastPathEfficiencyMetrics
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