[−][src]Struct coca::arena::UtilizationProfile
This is supported on crate feature
profile
only.A summary of all allocations from an arena and all its sub-arenas from it since its creation.
Note that every call to ArenaWrite::write_str
individually counts towards
allocation_count
and, if unsuccessful, failed_allocations
, so strings
created with fmt!
are counted as multiple allocations.
Fields
peak_utilization: usize
The maximum number of occupied bytes at any point in time, including padding.
allocation_count: usize
The total number of allocations attempted, including failed allocations.
failed_allocations: usize
The total number of attempted allocations for which the remaining space was insufficient.
Trait Implementations
impl Clone for UtilizationProfile
[src]
pub fn clone(&self) -> UtilizationProfile
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for UtilizationProfile
[src]
impl Debug for UtilizationProfile
[src]
Auto Trait Implementations
impl Send for UtilizationProfile
[src]
impl Sync for UtilizationProfile
[src]
impl Unpin for UtilizationProfile
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,