pub struct ArenaExtStats {
pub alloc_calls: u64,
pub total_bytes_allocated: u64,
pub peak_bytes: u64,
pub reset_count: u64,
pub overflow_count: u64,
pub chunk_alloc_count: u64,
}Expand description
Detailed statistics for an arena session.
Fields§
§alloc_calls: u64§total_bytes_allocated: u64§peak_bytes: u64§reset_count: u64§overflow_count: u64§chunk_alloc_count: u64Implementations§
Source§impl ArenaExtStats
impl ArenaExtStats
pub fn new() -> Self
Sourcepub fn merge(&mut self, other: &ArenaExtStats)
pub fn merge(&mut self, other: &ArenaExtStats)
Merge another stats object into this one.
pub fn record_alloc(&mut self, bytes: u64)
pub fn record_reset(&mut self)
pub fn record_overflow(&mut self)
pub fn record_chunk_alloc(&mut self)
pub fn update_peak(&mut self, current_bytes: u64)
pub fn avg_alloc_size(&self) -> f64
Trait Implementations§
Source§impl Clone for ArenaExtStats
impl Clone for ArenaExtStats
Source§fn clone(&self) -> ArenaExtStats
fn clone(&self) -> ArenaExtStats
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 ArenaExtStats
impl Debug for ArenaExtStats
Source§impl Default for ArenaExtStats
impl Default for ArenaExtStats
Source§fn default() -> ArenaExtStats
fn default() -> ArenaExtStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ArenaExtStats
impl RefUnwindSafe for ArenaExtStats
impl Send for ArenaExtStats
impl Sync for ArenaExtStats
impl Unpin for ArenaExtStats
impl UnsafeUnpin for ArenaExtStats
impl UnwindSafe for ArenaExtStats
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