pub struct CallStackHotspot {
pub call_stack_hash: u64,
pub total_frequency: u64,
pub total_size: usize,
pub impact_score: u64,
pub tasks: Vec<u64>,
pub average_size: f64,
pub peak_memory: usize,
}Expand description
Hot call stack information
Fields§
§call_stack_hash: u64Hash of the call stack
total_frequency: u64Total frequency across all allocations
total_size: usizeTotal memory allocated by this call stack
impact_score: u64Impact score (frequency * size)
tasks: Vec<u64>Tasks that use this call stack
average_size: f64Average allocation size
peak_memory: usizePeak memory usage from this call stack
Implementations§
Source§impl CallStackHotspot
impl CallStackHotspot
Sourcepub fn add_allocation(&mut self, size: usize, task_id: u64)
pub fn add_allocation(&mut self, size: usize, task_id: u64)
Add allocation to this call stack
Sourcepub fn impact_score(&self) -> u64
pub fn impact_score(&self) -> u64
Get impact score
Trait Implementations§
Source§impl Clone for CallStackHotspot
impl Clone for CallStackHotspot
Source§fn clone(&self) -> CallStackHotspot
fn clone(&self) -> CallStackHotspot
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 CallStackHotspot
impl Debug for CallStackHotspot
Source§impl<'de> Deserialize<'de> for CallStackHotspot
impl<'de> Deserialize<'de> for CallStackHotspot
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
Auto Trait Implementations§
impl Freeze for CallStackHotspot
impl RefUnwindSafe for CallStackHotspot
impl Send for CallStackHotspot
impl Sync for CallStackHotspot
impl Unpin for CallStackHotspot
impl UnsafeUnpin for CallStackHotspot
impl UnwindSafe for CallStackHotspot
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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