Skip to content

KotlinObjectSizeCalculator

Provides endpoints for calculating the runtime size of objects.

This interface is not intended to be used in production. It should only be used for statistics purposes.

Types

Companion

object Companion

Functions

shallowSize

abstract fun shallowSize(value: Any): Long

Calculates the shallow runtime size of the given value in bytes.

This function is not intended to be used in production. It should only be used for statistics purposes.