pub struct GenerationStats {
pub number: usize,
pub current_size: usize,
pub max_size: usize,
pub utilization: f64,
pub collection_count: usize,
pub survivor_count: usize,
pub promotion_threshold: usize,
pub time_since_last_collection: Option<Duration>,
pub collection_frequency: f64,
}Expand description
Statistics for a generation
Fields§
§number: usize§current_size: usize§max_size: usize§utilization: f64§collection_count: usize§survivor_count: usize§promotion_threshold: usize§time_since_last_collection: Option<Duration>§collection_frequency: f64Trait Implementations§
Source§impl Clone for GenerationStats
impl Clone for GenerationStats
Source§fn clone(&self) -> GenerationStats
fn clone(&self) -> GenerationStats
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 moreAuto Trait Implementations§
impl Freeze for GenerationStats
impl RefUnwindSafe for GenerationStats
impl Send for GenerationStats
impl Sync for GenerationStats
impl Unpin for GenerationStats
impl UnwindSafe for GenerationStats
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