//clika-runtime/io.clika.runtime/MemoryStats
MemoryStats
[jvm]
data class MemoryStats(var deviceFreeBytes: Long = 0, var deviceTotalBytes: Long = 0, var activeBytes: Long = 0, var requestedBytes: Long = 0, var reservedBytes: Long = 0, var cachedBytes: Long = 0, var peakActiveBytes: Long = 0, var peakReservedBytes: Long = 0, var numAllocs: Long = 0, var numFrees: Long = 0, var numOom: Long = 0, var wrappedBytes: Long = 0, var wrappedAllocs: Long = 0)
A device's runtime memory-pool counters (clika_rt_memory_stats): the allocator-level oracle. Byte counts and tallies are unsigned 64-bit in C and ride Long here.
Constructors
| MemoryStats | [jvm] constructor(deviceFreeBytes: Long = 0, deviceTotalBytes: Long = 0, activeBytes: Long = 0, requestedBytes: Long = 0, reservedBytes: Long = 0, cachedBytes: Long = 0, peakActiveBytes: Long = 0, peakReservedBytes: Long = 0, numAllocs: Long = 0, numFrees: Long = 0, numOom: Long = 0, wrappedBytes: Long = 0, wrappedAllocs: Long = 0) |
Properties
| Name | Summary |
|---|---|
| activeBytes | [jvm] var activeBytes: Long |
| cachedBytes | [jvm] var cachedBytes: Long |
| deviceFreeBytes | [jvm] var deviceFreeBytes: Long |
| deviceTotalBytes | [jvm] var deviceTotalBytes: Long |
| numAllocs | [jvm] var numAllocs: Long |
| numFrees | [jvm] var numFrees: Long |
| numOom | [jvm] var numOom: Long |
| peakActiveBytes | [jvm] var peakActiveBytes: Long |
| peakReservedBytes | [jvm] var peakReservedBytes: Long |
| requestedBytes | [jvm] var requestedBytes: Long |
| reservedBytes | [jvm] var reservedBytes: Long |
| wrappedAllocs | [jvm] var wrappedAllocs: Long |
| wrappedBytes | [jvm] var wrappedBytes: Long |