#[repr(C)]
pub struct rpmalloc_global_statistics_t { pub mapped: size_t, pub mapped_peak: size_t, pub cached: size_t, pub huge_alloc: size_t, pub huge_alloc_peak: size_t, pub mapped_total: size_t, pub unmapped_total: size_t, }
Expand description

Global memory statistics

Fields

mapped: size_t

Current amount of virtual memory mapped, all of which might not have been committed (only if ENABLE_STATISTICS=1)

mapped_peak: size_t

Peak amount of virtual memory mapped, all of which might not have been committed (only if ENABLE_STATISTICS=1)

cached: size_t

Current amount of memory in global caches for small and medium sizes (<32KiB)

huge_alloc: size_t

Current amount of memory allocated in huge allocations, i.e larger than LARGE_SIZE_LIMIT which is 2MiB by default (only if ENABLE_STATISTICS=1)

huge_alloc_peak: size_t

Peak amount of memory allocated in huge allocations, i.e larger than LARGE_SIZE_LIMIT which is 2MiB by default (only if ENABLE_STATISTICS=1)

mapped_total: size_t

Total amount of memory mapped since initialization (only if ENABLE_STATISTICS=1)

unmapped_total: size_t

Total amount of memory unmapped since initialization (only if ENABLE_STATISTICS=1)

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.