pub struct TopNAnalyzer { /* private fields */ }Expand description
Top N analyzer
Implementations§
Source§impl TopNAnalyzer
impl TopNAnalyzer
Sourcepub fn new(allocations: Vec<AllocationInfo>) -> Self
pub fn new(allocations: Vec<AllocationInfo>) -> Self
Create a new Top N analyzer
Sourcepub fn top_allocation_sites(&self, n: usize) -> Vec<AllocationSite>
pub fn top_allocation_sites(&self, n: usize) -> Vec<AllocationSite>
Get top N allocation sites by total bytes allocated
Sourcepub fn top_leaked_bytes(&self, n: usize) -> Vec<LeakedAllocation>
pub fn top_leaked_bytes(&self, n: usize) -> Vec<LeakedAllocation>
Get top N leaked allocations by bytes
Sourcepub fn top_temporary_churn(
&self,
n: usize,
threshold_ms: u64,
) -> Vec<TemporaryChurn>
pub fn top_temporary_churn( &self, n: usize, threshold_ms: u64, ) -> Vec<TemporaryChurn>
Get top N temporary churn (short-lived allocations) by count
Sourcepub fn summary(&self) -> TopNSummary
pub fn summary(&self) -> TopNSummary
Get summary statistics
Auto Trait Implementations§
impl Freeze for TopNAnalyzer
impl RefUnwindSafe for TopNAnalyzer
impl Send for TopNAnalyzer
impl Sync for TopNAnalyzer
impl Unpin for TopNAnalyzer
impl UnsafeUnpin for TopNAnalyzer
impl UnwindSafe for TopNAnalyzer
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> 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