pub struct PageInfo { /* private fields */ }Expand description
Page occupancy information for a Salsa struct ingredient.
Empty pages are excluded. Page fill is the number of slots that have been initialized, so slots remain included after their values are deleted or made available for reuse. Percentiles use the nearest-rank method across the ingredient’s non-empty pages.
Implementations§
Source§impl PageInfo
impl PageInfo
Sourcepub fn page_count(&self) -> usize
pub fn page_count(&self) -> usize
Returns the number of non-empty pages allocated for this ingredient.
Sourcepub fn page_capacity(&self) -> usize
pub fn page_capacity(&self) -> usize
Returns the number of slots that can be stored in each page.
Sourcepub fn excess_capacity(&self) -> usize
pub fn excess_capacity(&self) -> usize
Returns the number of unused slots across all non-empty pages.
Sourcepub fn p25_fill(&self) -> usize
pub fn p25_fill(&self) -> usize
Returns the 25th percentile of initialized slots per non-empty page.
Sourcepub fn p50_fill(&self) -> usize
pub fn p50_fill(&self) -> usize
Returns the 50th percentile of initialized slots per non-empty page.
Sourcepub fn p75_fill(&self) -> usize
pub fn p75_fill(&self) -> usize
Returns the 75th percentile of initialized slots per non-empty page.
Trait Implementations§
impl Eq for PageInfo
Source§impl Ord for PageInfo
impl Ord for PageInfo
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for PageInfo
impl PartialOrd for PageInfo
impl StructuralPartialEq for PageInfo
Auto Trait Implementations§
impl Freeze for PageInfo
impl RefUnwindSafe for PageInfo
impl Send for PageInfo
impl Sync for PageInfo
impl Unpin for PageInfo
impl UnsafeUnpin for PageInfo
impl UnwindSafe for PageInfo
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more