Expand description
Configuration (private module)
Re-exportsΒ§
use std::sync::LazyLock;πuse sysinfo::MemoryRefreshKind;πuse sysinfo::System;πuse tracing::warn;πuse crate::internal_prelude::*;π
MacrosΒ§
- derive_
deftly_ πtemplate_ QtySetters - Define setters on the builder for every field of type
Qty
StructsΒ§
- Config
- Configuration for a memory data tracker
- Config
Builder - Configuration for a memory data tracker (builder)
- Config
Inner - Configuration, if enabled
EnumsΒ§
- MemQuery
Error π - An error when we are unable to obtain the systemβs total available memory.
ConstantsΒ§
- MAX_
LOW_ πWATER_ RATIO - Minimum hysteresis
- MIN_
MAX_ πPARTICIPANTS - We want to support at least this many participants with a cache each
FunctionsΒ§
- compute_
max_ πfrom_ total_ system_ mem - Determine a max given the systemβs total available memory.
- to_
usize_ πsaturating - Convert a
u64to ausize, saturating if the value would overflow. - total_
available_ πmemory - The total available memory in bytes.