pub struct HeapProfiler { /* private fields */ }Expand description
Heap profiler for analyzing memory usage patterns.
Implementations§
Source§impl HeapProfiler
impl HeapProfiler
Sourcepub fn set_sample_interval(&self, ms: usize)
pub fn set_sample_interval(&self, ms: usize)
Set the sample interval.
Sourcepub fn sample(&self) -> HeapSample
pub fn sample(&self) -> HeapSample
Take a heap sample.
Sourcepub fn samples(&self) -> Vec<HeapSample>
pub fn samples(&self) -> Vec<HeapSample>
Get all samples.
Sourcepub fn report(&self) -> HeapReport
pub fn report(&self) -> HeapReport
Generate a heap report.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for HeapProfiler
impl !RefUnwindSafe for HeapProfiler
impl Send for HeapProfiler
impl Sync for HeapProfiler
impl Unpin for HeapProfiler
impl UnwindSafe for HeapProfiler
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