pub struct AllocationPattern {
pub allocation_count: u64,
pub avg_size: u64,
pub max_size: u64,
pub min_size: u64,
pub size_stddev: f64,
}
Expand description
Allocation pattern for a specific type.
Fields§
§allocation_count: u64
Number of allocations
avg_size: u64
Average allocation size
max_size: u64
Largest allocation
min_size: u64
Smallest allocation
size_stddev: f64
Standard deviation of sizes
Trait Implementations§
Source§impl Clone for AllocationPattern
impl Clone for AllocationPattern
Source§fn clone(&self) -> AllocationPattern
fn clone(&self) -> AllocationPattern
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 moreAuto Trait Implementations§
impl Freeze for AllocationPattern
impl RefUnwindSafe for AllocationPattern
impl Send for AllocationPattern
impl Sync for AllocationPattern
impl Unpin for AllocationPattern
impl UnwindSafe for AllocationPattern
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