sizeOfMap

fun sizeOfMap(map: Map<*, *>?): Long

Returns the size in bytes of a Map object, including sizes of its keys and values, supplying .UNKNOWN_DEFAULT_RAM_BYTES_USED when object type is not well known. This method recurses up to .MAX_DEPTH.


fun sizeOfMap(map: Map<*, *>?, defSize: Long): Long

Returns the size in bytes of a Map object, including sizes of its keys and values, supplying default object size when object type is not well known. This method recurses up to .MAX_DEPTH.