8.12
9.1 Runtime
import: rhombus/runtime | package: rhombus-prototype |
Forces an immediate garbage collection:
gc forces a major collection that inspects all generations.
minor_gc function forces only a minor collection.
incremental_gc function may perform a minor collection, but also requests incremental collection for future automatic collections. The request expires if it is not renewed frequently.
function |
|
function |
Returns the amount of memory allocated:
current_memory_use reports the number of bytes occupied by all currently allocated objects, not counting overhead, but including objects that might be reclaimed immediately by a garbage collection.
cumulative_memory_use reports the total number of bytes that have been allocated since the process started, including bytes that have been subsequently reclaimed by garbage collection.