Expand description
Configuration (private module)
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
u64
to ausize
, saturating if the value would overflow. - total_
available_ 🔒memory - The total available memory in bytes.