[][src]Struct coca::arena::UtilizationProfile

pub struct UtilizationProfile {
    pub peak_utilization: usize,
    pub allocation_count: usize,
    pub failed_allocations: usize,
}
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]

impl Copy for UtilizationProfile[src]

impl Debug for UtilizationProfile[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.