pub struct MemoryDetail {
pub cached: MetricState<u64>,
pub buffers: MetricState<u64>,
pub shared: MetricState<u64>,
pub active: MetricState<u64>,
pub inactive: MetricState<u64>,
pub wired: MetricState<u64>,
pub compressed: MetricState<u64>,
pub dirty: MetricState<u64>,
}Expand description
The secondary memory breakdown.
Every field is a MetricState because the two platforms expose disjoint
subsets: buffers is Linux-only, wired and compressed are macOS-only.
§8.4 forbids labelling all non-free memory as application use, so these are
presented as detail rather than folded into used.
Fields§
§cached: MetricState<u64>Page cache.
buffers: MetricState<u64>Block-device buffers. Linux only.
Shared memory.
active: MetricState<u64>Recently used pages.
inactive: MetricState<u64>Reclaimable pages.
wired: MetricState<u64>Pages that cannot be paged out. macOS only.
compressed: MetricState<u64>Pages held in the compressor. macOS only.
dirty: MetricState<u64>Pages awaiting writeback. Linux only.
Implementations§
Source§impl MemoryDetail
impl MemoryDetail
Sourcepub const WARMING_UP: Self
pub const WARMING_UP: Self
A breakdown with nothing measured, for the first frame.
Trait Implementations§
Source§impl Clone for MemoryDetail
impl Clone for MemoryDetail
Source§fn clone(&self) -> MemoryDetail
fn clone(&self) -> MemoryDetail
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 MemoryDetail
Source§impl Debug for MemoryDetail
impl Debug for MemoryDetail
Source§impl PartialEq for MemoryDetail
impl PartialEq for MemoryDetail
impl StructuralPartialEq for MemoryDetail
Auto Trait Implementations§
impl Freeze for MemoryDetail
impl RefUnwindSafe for MemoryDetail
impl Send for MemoryDetail
impl Sync for MemoryDetail
impl Unpin for MemoryDetail
impl UnsafeUnpin for MemoryDetail
impl UnwindSafe for MemoryDetail
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