pub struct LibraryUsage {
pub allocation_count: usize,
pub total_bytes: usize,
pub peak_bytes: usize,
pub average_size: f64,
pub categories: HashMap<String, usize>,
pub hotspot_functions: Vec<String>,
}Expand description
Library usage information.
Fields§
§allocation_count: usizeNumber of allocations.
total_bytes: usizeTotal bytes allocated.
peak_bytes: usizePeak memory usage in bytes.
average_size: f64Average allocation size.
categories: HashMap<String, usize>Categorized usage statistics.
hotspot_functions: Vec<String>Functions with high allocation activity.
Trait Implementations§
Source§impl Clone for LibraryUsage
impl Clone for LibraryUsage
Source§fn clone(&self) -> LibraryUsage
fn clone(&self) -> LibraryUsage
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 LibraryUsage
impl Debug for LibraryUsage
Source§impl Default for LibraryUsage
impl Default for LibraryUsage
Source§fn default() -> LibraryUsage
fn default() -> LibraryUsage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LibraryUsage
impl RefUnwindSafe for LibraryUsage
impl Send for LibraryUsage
impl Sync for LibraryUsage
impl Unpin for LibraryUsage
impl UnsafeUnpin for LibraryUsage
impl UnwindSafe for LibraryUsage
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