pub struct GcProfiler { /* private fields */ }Expand description
Tracks GC activity across a run.
Implementations§
Source§impl GcProfiler
impl GcProfiler
Sourcepub fn collection_count(&self) -> usize
pub fn collection_count(&self) -> usize
Number of GC collections recorded.
Sourcepub fn total_collected(&self) -> usize
pub fn total_collected(&self) -> usize
Total objects collected across all GC cycles.
Sourcepub fn avg_pause_ns(&self) -> f64
pub fn avg_pause_ns(&self) -> f64
Average pause time in nanoseconds.
Sourcepub fn max_pause_ns(&self) -> u64
pub fn max_pause_ns(&self) -> u64
Maximum pause time seen.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GcProfiler
impl RefUnwindSafe for GcProfiler
impl Send for GcProfiler
impl Sync for GcProfiler
impl Unpin for GcProfiler
impl UnsafeUnpin for GcProfiler
impl UnwindSafe for GcProfiler
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