pub type AllocatedBytesFn = Arc<dyn Fn() -> usize + Send + Sync>;Expand description
Returns the number of bytes currently allocated by the process.
This is called on every reservation change (grow, try_grow and
shrink) of every pool that reports to the tracker, so it must be cheap,
e.g. a single atomic load. Do not read allocator statistics that need a
refresh on each call (such as jemalloc’s epoch).
Aliased Type§
pub struct AllocatedBytesFn { /* private fields */ }