pub struct MemoryProfiler { /* private fields */ }Expand description
Memory profiler for analyzing allocation patterns
Implementations§
Source§impl MemoryProfiler
impl MemoryProfiler
Sourcepub fn record_allocation(&mut self, size: usize)
pub fn record_allocation(&mut self, size: usize)
Record an allocation event
Sourcepub fn record_deallocation(&mut self, size: usize)
pub fn record_deallocation(&mut self, size: usize)
Record a deallocation event
Sourcepub fn analyze_patterns(&self) -> AllocationPatternAnalysis
pub fn analyze_patterns(&self) -> AllocationPatternAnalysis
Analyze allocation patterns
Trait Implementations§
Source§impl Debug for MemoryProfiler
impl Debug for MemoryProfiler
Auto Trait Implementations§
impl Freeze for MemoryProfiler
impl RefUnwindSafe for MemoryProfiler
impl Send for MemoryProfiler
impl Sync for MemoryProfiler
impl Unpin for MemoryProfiler
impl UnwindSafe for MemoryProfiler
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