pub struct GCStats {Show 13 fields
pub total_cycles: u64,
pub total_gc_time: Duration,
pub total_bytes_collected: u64,
pub total_objects_collected: u64,
pub average_pause_time: Duration,
pub max_pause_time: Duration,
pub gc_efficiency: f64,
pub young_gen_collections: u64,
pub old_gen_collections: u64,
pub promotion_rate: f64,
pub reclaim_rate: f64,
pub gc_overhead: f64,
pub last_gc_time: Option<Instant>,
}Expand description
GC statistics
Fields§
§total_cycles: u64Total GC cycles
total_gc_time: DurationTotal time spent in GC
total_bytes_collected: u64Total bytes collected
total_objects_collected: u64Total objects collected
average_pause_time: DurationAverage GC pause time
max_pause_time: DurationMaximum GC pause time
gc_efficiency: f64GC efficiency (bytes collected per millisecond)
young_gen_collections: u64Young generation collections
old_gen_collections: u64Old generation collections
promotion_rate: f64Promotion rate (objects/sec)
reclaim_rate: f64Memory reclaim rate
gc_overhead: f64GC overhead percentage
last_gc_time: Option<Instant>Last GC timestamp
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GCStats
impl RefUnwindSafe for GCStats
impl Send for GCStats
impl Sync for GCStats
impl Unpin for GCStats
impl UnsafeUnpin for GCStats
impl UnwindSafe for GCStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more