pub struct GCStats {
pub collections: u64,
pub objects_collected: u64,
pub bytes_collected: u64,
pub total_collection_time: Duration,
pub avg_collection_time: Duration,
pub peak_heap_size: usize,
pub current_heap_size: usize,
pub last_collection: Option<Instant>,
}Expand description
Garbage collection statistics
Fields§
§collections: u64§objects_collected: u64§bytes_collected: u64§total_collection_time: Duration§avg_collection_time: Duration§peak_heap_size: usize§current_heap_size: usize§last_collection: Option<Instant>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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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