pub struct SizeHistogram { /* private fields */ }Expand description
Histogram of allocation sizes.
Implementations§
Source§impl SizeHistogram
impl SizeHistogram
Sourcepub fn bucket_labels() -> &'static [&'static str; 7]
pub fn bucket_labels() -> &'static [&'static str; 7]
Get bucket labels.
Sourcepub fn most_common_bucket(&self) -> (&'static str, u64)
pub fn most_common_bucket(&self) -> (&'static str, u64)
Get the most common bucket.
Sourcepub fn percentages(&self) -> [f64; 7]
pub fn percentages(&self) -> [f64; 7]
Get percentage for each bucket.
Trait Implementations§
Source§impl Clone for SizeHistogram
impl Clone for SizeHistogram
Source§fn clone(&self) -> SizeHistogram
fn clone(&self) -> SizeHistogram
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SizeHistogram
impl Debug for SizeHistogram
Source§impl Default for SizeHistogram
impl Default for SizeHistogram
Source§fn default() -> SizeHistogram
fn default() -> SizeHistogram
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SizeHistogram
impl RefUnwindSafe for SizeHistogram
impl Send for SizeHistogram
impl Sync for SizeHistogram
impl Unpin for SizeHistogram
impl UnwindSafe for SizeHistogram
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