//! Allocator statistics (shared by every target).
/// Memory use and limits of a device's allocator, in bytes.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]pubstructMemoryStats{/// Bytes in live buffers (rounded allocation sizes).
pubactive:usize,
/// Highest `active` since creation or the last `Device::reset_peak`.
pubpeak:usize,
/// Bytes held in the cache for reuse.
pubcache:usize,
/// Allocations that would push `active` past this fail.
pubmemory_limit:usize,
/// The cache is trimmed to at most this many bytes.
pubcache_limit:usize,
/// Buffers obtained from Metal (cache misses) so far.
pubsystem_allocations:u64,
/// Buffers are kept resident up to this many bytes (see
/// `Device::set_wired_limit`).
pubwired_limit:usize,
/// Bytes currently wired.
pubwired:usize,
}