Total memory allocated by the GC into its HEAP since the last GC collection, in bytes.
DEPRECATED
DEPRECATED
Approximate number of free bytes in the GC HEAP.
The system memory allocated by the GC for its HEAP, in bytes.
Total memory allocated by the GC into its HEAP since the program started, in bytes.
The size (in bytes) of virtual system memory that the GC returned to the OS when shrinking its HEAP.
Struct
Struct
Value
Object
Object
Object
Total memory allocated by the GC into its HEAP since the last GC collection, in bytes.
DEPRECATED
DEPRECATED
Approximate number of free bytes in the GC HEAP. The number is relative to the #heap_size. The reported value is pessimistic, there might be more free bytes in reality.
The system memory allocated by the GC for its HEAP, in bytes. The memory may or may not have been allocated by the OS (for example some pages haven't been accessed). The number can grow and shrink as needed by the process.
Total memory allocated by the GC into its HEAP since the program started, in bytes. The number keeps growing indefinitely until the integer wraps back to zero.
The size (in bytes) of virtual system memory that the GC returned to the OS when shrinking its HEAP. The OS may have reclaimed the memory already, reducing the resident memory usage, or may do so later (for example on memory pressure). The GC will reuse this memory when it needs to grow its HEAP again.
© 2012–2026 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.19.0/GC/Stats.html