pub struct MemoryProfile {
pub total_allocations: u64,
pub total_deallocations: u64,
pub bytes_allocated: u64,
pub bytes_deallocated: u64,
pub allocation_patterns: BTreeMap<AllocationType, AllocationPattern>,
pub peak_memory_usage: u64,
pub fragmentation_estimate: f32,
}
Expand description
Memory allocation profiling.
Fields§
§total_allocations: u64
Total allocations observed
total_deallocations: u64
Total deallocations observed
bytes_allocated: u64
Bytes allocated
bytes_deallocated: u64
Bytes deallocated
allocation_patterns: BTreeMap<AllocationType, AllocationPattern>
Allocation patterns by type
peak_memory_usage: u64
Peak memory usage observed
fragmentation_estimate: f32
Memory fragmentation estimate
Trait Implementations§
Source§impl Clone for MemoryProfile
impl Clone for MemoryProfile
Source§fn clone(&self) -> MemoryProfile
fn clone(&self) -> MemoryProfile
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 MemoryProfile
impl RefUnwindSafe for MemoryProfile
impl Send for MemoryProfile
impl Sync for MemoryProfile
impl Unpin for MemoryProfile
impl UnwindSafe for MemoryProfile
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