pub struct UnifiedStats {Show 13 fields
pub total_allocations: u64,
pub total_deallocations: u64,
pub bytes_allocated: u64,
pub bytes_deallocated: u64,
pub strategy_allocations: HashMap<AllocationStrategy, u64>,
pub buddy_allocations: u64,
pub slab_allocations: u64,
pub arena_allocations: u64,
pub routing_decisions: u64,
pub routing_cache_hits: u64,
pub average_allocation_time_ns: f64,
pub peak_memory_usage: usize,
pub current_memory_usage: usize,
}Expand description
Unified allocator statistics
Fields§
§total_allocations: u64§total_deallocations: u64§bytes_allocated: u64§bytes_deallocated: u64§strategy_allocations: HashMap<AllocationStrategy, u64>§buddy_allocations: u64§slab_allocations: u64§arena_allocations: u64§routing_decisions: u64§routing_cache_hits: u64§average_allocation_time_ns: f64§peak_memory_usage: usize§current_memory_usage: usizeTrait Implementations§
Source§impl Clone for UnifiedStats
impl Clone for UnifiedStats
Source§fn clone(&self) -> UnifiedStats
fn clone(&self) -> UnifiedStats
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 UnifiedStats
impl Debug for UnifiedStats
Source§impl Default for UnifiedStats
impl Default for UnifiedStats
Source§fn default() -> UnifiedStats
fn default() -> UnifiedStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnifiedStats
impl RefUnwindSafe for UnifiedStats
impl Send for UnifiedStats
impl Sync for UnifiedStats
impl Unpin for UnifiedStats
impl UnwindSafe for UnifiedStats
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