pub struct GcHeapStats {
pub collections: u64,
pub young_collections: u64,
pub old_collections: u64,
pub total_collected_bytes: u64,
pub total_collection_time: Duration,
pub peak_heap_bytes: usize,
pub current_heap_bytes: usize,
pub last_collection: Option<Instant>,
}Expand description
Collection statistics.
Fields§
§collections: u64§young_collections: u64§old_collections: u64§total_collected_bytes: u64§total_collection_time: Duration§peak_heap_bytes: usize§current_heap_bytes: usize§last_collection: Option<Instant>Trait Implementations§
Source§impl Clone for GcHeapStats
impl Clone for GcHeapStats
Source§fn clone(&self) -> GcHeapStats
fn clone(&self) -> GcHeapStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GcHeapStats
impl Debug for GcHeapStats
Source§impl Default for GcHeapStats
impl Default for GcHeapStats
Source§fn default() -> GcHeapStats
fn default() -> GcHeapStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GcHeapStats
impl RefUnwindSafe for GcHeapStats
impl Send for GcHeapStats
impl Sync for GcHeapStats
impl Unpin for GcHeapStats
impl UnsafeUnpin for GcHeapStats
impl UnwindSafe for GcHeapStats
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