runtime.memory()
Reads garbage collector statistics.
Signature
runtime.memory()
Parameters
No parameters.
Returns
Dictionary with unsigned heap, free, unmapped, since_collection, total_allocated and collections values. Memory quantities are bytes.
Behavior
Reports process-wide collector state.
Errors
Incorrect arity or allocation failure.
Example
use runtime
print(runtime.memory().heap)