pub enum AllocatorStat {
Allocated,
Resident,
Active,
Mapped,
}Expand description
The closed set of allocator memory statistics published through
MetricsCollector::set_allocator_memory.
§exhaustive-by-contract
exhaustive-by-contract: a closed 4-variant allocator stat set whose
label values (allocated | resident | active | mapped) are fixed by the
metrics spec; out-of-crate emitters (the camel-cli jemalloc sampler) match
every variant, so adding one is a contract change, not a compatible
extension.
Variants§
Allocated
Total bytes allocated by the allocator (in-use).
Resident
Resident bytes backed by physical pages (RSS contribution).
Active
Bytes in active pages.
Mapped
Bytes in mapped virtual ranges.
Implementations§
Trait Implementations§
Source§impl Clone for AllocatorStat
impl Clone for AllocatorStat
Source§fn clone(&self) -> AllocatorStat
fn clone(&self) -> AllocatorStat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AllocatorStat
Source§impl Debug for AllocatorStat
impl Debug for AllocatorStat
impl Eq for AllocatorStat
Source§impl PartialEq for AllocatorStat
impl PartialEq for AllocatorStat
impl StructuralPartialEq for AllocatorStat
Auto Trait Implementations§
impl Freeze for AllocatorStat
impl RefUnwindSafe for AllocatorStat
impl Send for AllocatorStat
impl Sync for AllocatorStat
impl Unpin for AllocatorStat
impl UnsafeUnpin for AllocatorStat
impl UnwindSafe for AllocatorStat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more