#[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
sourceimpl Clone for rpmalloc_global_statistics_t
impl Clone for rpmalloc_global_statistics_t
sourcefn clone(&self) -> rpmalloc_global_statistics_t
fn clone(&self) -> rpmalloc_global_statistics_t
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for rpmalloc_global_statistics_t
impl Debug for rpmalloc_global_statistics_t
sourceimpl Default for rpmalloc_global_statistics_t
impl Default for rpmalloc_global_statistics_t
sourcefn default() -> rpmalloc_global_statistics_t
fn default() -> rpmalloc_global_statistics_t
Returns the “default value” for a type. Read more
impl Copy for rpmalloc_global_statistics_t
Auto Trait Implementations
impl RefUnwindSafe for rpmalloc_global_statistics_t
impl Send for rpmalloc_global_statistics_t
impl Sync for rpmalloc_global_statistics_t
impl Unpin for rpmalloc_global_statistics_t
impl UnwindSafe for rpmalloc_global_statistics_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more