pub struct MemoryProfiler { /* private fields */ }Expand description
Memory profiler combining all profiling capabilities.
Implementations§
Source§impl MemoryProfiler
impl MemoryProfiler
Sourcepub fn snapshot(&self) -> MemorySnapshot
pub fn snapshot(&self) -> MemorySnapshot
Take a memory snapshot.
Sourcepub fn stats(&self) -> AllocationStats
pub fn stats(&self) -> AllocationStats
Get current allocation statistics.
Sourcepub fn heap_stats(&self) -> HeapStats
pub fn heap_stats(&self) -> HeapStats
Get heap statistics.
Sourcepub fn detect_leaks(&self) -> LeakReport
pub fn detect_leaks(&self) -> LeakReport
Run leak detection and generate a report.
Sourcepub fn report(&self) -> MemoryReport
pub fn report(&self) -> MemoryReport
Generate a comprehensive memory report.
Sourcepub fn pool_stats(&self) -> PoolStats
pub fn pool_stats(&self) -> PoolStats
Get pool statistics (string pool, buffer pool, etc.).
Trait Implementations§
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