Accumulator
An accumulator of object references. This class allows for customizing RAM usage estimation.
Functions
Link copied to clipboard
open fun accumulateArray(array: Any, shallowSize: Long, values: MutableList<Any>, queue: MutableCollection<Any>): Long
Accumulate transitive references for the provided values of the given array into queue * and return the shallow size of this array.
Link copied to clipboard
open fun accumulateObject(o: Any, shallowSize: Long, fieldValues: Collection<Any>, queue: MutableCollection<Any>): Long
Accumulate transitive references for the provided fields of the given object into queue * and return the shallow size of this object.