HeapStats

Struct HeapStats 

Source
pub struct HeapStats {
    pub region_stats: [Option<RegionStats>; 3],
    pub size: usize,
    pub current_usage: usize,
}
Expand description

Stats for a heap allocator

Enable the “internal-heap-stats” feature if you want collect additional heap informations at the cost of extra cpu time during every alloc/dealloc.

Fields§

§region_stats: [Option<RegionStats>; 3]

Granular stats for all the configured memory regions.

§size: usize

Total size of all combined heap regions in bytes.

§current_usage: usize

Current usage of the heap across all configured regions in bytes.

Trait Implementations§

Source§

impl Debug for HeapStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for HeapStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Format for HeapStats

Available on crate feature defmt only.
Source§

fn format(&self, fmt: Formatter<'_>)

Writes the defmt representation of self to fmt.

Auto Trait Implementations§

§

impl Freeze for HeapStats

§

impl RefUnwindSafe for HeapStats

§

impl Send for HeapStats

§

impl Sync for HeapStats

§

impl Unpin for HeapStats

§

impl UnwindSafe for HeapStats

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.