#[repr(C)]pub struct rpmalloc_thread_statistics_t {
pub sizecache: size_t,
pub spancache: size_t,
pub thread_to_global: size_t,
pub global_to_thread: size_t,
pub span_use: [rpmalloc_thread_span_statistics_t; 32],
pub size_use: [rpmalloc_thread_size_statistics_t; 128],
}
Expand description
Memory statistics for a thread
Fields
sizecache: size_t
Current number of bytes available in thread size class caches for small and medium sizes (<32KiB)
spancache: size_t
Current number of bytes available in thread span caches for small and medium sizes (<32KiB)
thread_to_global: size_t
Total number of bytes transitioned from thread cache to global cache (only if ENABLE_STATISTICS=1)
global_to_thread: size_t
Total number of bytes transitioned from global cache to thread cache (only if ENABLE_STATISTICS=1)
span_use: [rpmalloc_thread_span_statistics_t; 32]
Per span count statistics (only if ENABLE_STATISTICS=1)
size_use: [rpmalloc_thread_size_statistics_t; 128]
Per size class statistics (only if ENABLE_STATISTICS=1)
Trait Implementations
sourceimpl Clone for rpmalloc_thread_statistics_t
impl Clone for rpmalloc_thread_statistics_t
sourcefn clone(&self) -> rpmalloc_thread_statistics_t
fn clone(&self) -> rpmalloc_thread_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
impl Copy for rpmalloc_thread_statistics_t
Auto Trait Implementations
impl RefUnwindSafe for rpmalloc_thread_statistics_t
impl Send for rpmalloc_thread_statistics_t
impl Sync for rpmalloc_thread_statistics_t
impl Unpin for rpmalloc_thread_statistics_t
impl UnwindSafe for rpmalloc_thread_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