pub struct GcPassEvent {
pub trigger: GcTrigger,
pub stats: GcStats,
pub registry_len_before: usize,
pub duration_ns: u64,
}Expand description
One collector pass, as reported to the set_gc_observer observer. Fires
for every pass that actually ran — including aborted ones (visible via
stats.aborted) and prune-only fast passes — but never for a
maybe_collect that stayed below the threshold.
Fields§
§trigger: GcTriggerThe safe point that requested the pass.
stats: GcStatsThe pass’s result.
registry_len_before: usizeRegistry length (live + not-yet-pruned dead entries) when the pass started.
duration_ns: u64Wall-clock duration of the pass. Zero on wasm32 (no monotonic clock).
Trait Implementations§
Source§impl Clone for GcPassEvent
impl Clone for GcPassEvent
Source§fn clone(&self) -> GcPassEvent
fn clone(&self) -> GcPassEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GcPassEvent
Auto Trait Implementations§
impl Freeze for GcPassEvent
impl RefUnwindSafe for GcPassEvent
impl Send for GcPassEvent
impl Sync for GcPassEvent
impl Unpin for GcPassEvent
impl UnsafeUnpin for GcPassEvent
impl UnwindSafe for GcPassEvent
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