pub struct Distances {
pub pairs: u64,
pub up_to_64: u64,
pub up_to_4_kib: u64,
pub up_to_16_kib: u64,
pub up_to_2_mib: u64,
pub beyond_2_mib: u64,
pub total_bytes: u64,
}Expand description
Absolute address distances, each counted in exactly one bucket.
Fields§
§pairs: u64Distances recorded; the five buckets sum to this.
up_to_64: u64At most CACHE_LINE_BYTES apart, including zero.
up_to_4_kib: u64Farther than a cache line and at most SMALL_PAGE_BYTES apart.
up_to_16_kib: u64Farther than that and at most LARGE_PAGE_BYTES apart.
up_to_2_mib: u64Farther than that and at most SEGMENT_BYTES apart.
beyond_2_mib: u64Farther than SEGMENT_BYTES apart.
total_bytes: u64Saturating sum of every recorded distance.
Trait Implementations§
impl Eq for Distances
impl StructuralPartialEq for Distances
Auto Trait Implementations§
impl Forget for Distances
impl Freeze for Distances
impl Move for Distances
impl RefUnwindSafe for Distances
impl Send for Distances
impl Sync for Distances
impl Unpin for Distances
impl UnsafeUnpin for Distances
impl UnwindSafe for Distances
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.