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§impl Debug for SizeHistogram
impl Debug for SizeHistogram
Auto Trait Implementations§
impl Forget for SizeHistogram
impl Freeze for SizeHistogram
impl Move for SizeHistogram
impl RefUnwindSafe for SizeHistogram
impl Send for SizeHistogram
impl Sync for SizeHistogram
impl Unpin for SizeHistogram
impl UnsafeUnpin 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