pub struct ProfileBudget {
pub sample_rows: usize,
pub top_k: usize,
pub histogram_bins: usize,
}Expand description
Per-column bounds on how much the profiler may retain. Every accumulator is sized from these three knobs; the derived methods report the resulting item and byte ceilings.
Fields§
§sample_rows: usizeReservoir sample capacity (retained example values per column).
top_k: usizeNumber of heavy-hitter slots (Space-Saving counters).
histogram_bins: usizeNumber of numeric-histogram bins.
Implementations§
Source§impl ProfileBudget
impl ProfileBudget
Sourcepub fn retained_items_per_column(&self) -> usize
pub fn retained_items_per_column(&self) -> usize
Upper bound on ColumnSketches::retained_items: the reservoir, top-k,
and histogram each cap at their configured size.
Sourcepub fn retained_bytes_ceiling(&self) -> usize
pub fn retained_bytes_ceiling(&self) -> usize
Upper bound on ColumnSketches::retained_bytes: the worst-case heap
footprint of every accumulator, summed. Input size never pushes actual
retention past this.
Trait Implementations§
Source§impl Clone for ProfileBudget
impl Clone for ProfileBudget
Source§fn clone(&self) -> ProfileBudget
fn clone(&self) -> ProfileBudget
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 ProfileBudget
Source§impl Debug for ProfileBudget
impl Debug for ProfileBudget
Source§impl Default for ProfileBudget
impl Default for ProfileBudget
Source§impl<'de> Deserialize<'de> for ProfileBudget
impl<'de> Deserialize<'de> for ProfileBudget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProfileBudget
Source§impl PartialEq for ProfileBudget
impl PartialEq for ProfileBudget
Source§impl Serialize for ProfileBudget
impl Serialize for ProfileBudget
impl StructuralPartialEq for ProfileBudget
Auto Trait Implementations§
impl Freeze for ProfileBudget
impl RefUnwindSafe for ProfileBudget
impl Send for ProfileBudget
impl Sync for ProfileBudget
impl Unpin for ProfileBudget
impl UnsafeUnpin for ProfileBudget
impl UnwindSafe for ProfileBudget
Blanket Implementations§
impl<T> Allocation for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§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.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