Plain-data snapshot of one device's allocation counters.
Returned by MemoryTracker::get_stats. Copying is trivial —
the struct is a value-typed snapshot and not connected to the live
atomic counters once returned.
Attributes
current_bytesstd::size_tBytes currently held by the allocator on this device (lifetime allocated minus lifetime freed).
peak_bytesstd::size_tHigh-water mark of
current_bytes since process start or the last MemoryTracker::reset_peak call.alloc_countstd::size_tLifetime total of successful allocation events.
free_countstd::size_tLifetime total of deallocation events.