Package-level declarations

Types

Link copied to clipboard

Note: this API is unstable and may change in any release.

Since Kotlin 1.9
Link copied to clipboard

Note: this API is unstable and may change in any release.

Since Kotlin 1.9
Link copied to clipboard
class GCInfo(val epoch: Long, val startTimeNs: Long, val endTimeNs: Long, val firstPauseRequestTimeNs: Long, val firstPauseStartTimeNs: Long, val firstPauseEndTimeNs: Long, val secondPauseRequestTimeNs: Long?, val secondPauseStartTimeNs: Long?, val secondPauseEndTimeNs: Long?, val postGcCleanupTimeNs: Long?, val rootSet: RootSetStatistics, val markedCount: Long, val sweepStatistics: Map<String, SweepStatistics>, val memoryUsageBefore: Map<String, MemoryUsage>, val memoryUsageAfter: Map<String, MemoryUsage>)

This class represents statistics about the single run of the garbage collector. It is supposed to be used for testing and debugging purposes only.

Since Kotlin 1.9
Link copied to clipboard
class MemoryUsage(val totalObjectsSizeBytes: Long)

This class represents statistics of memory usage in one memory pool.

Since Kotlin 1.9
Link copied to clipboard
Link copied to clipboard
class RootSetStatistics(val threadLocalReferences: Long, val stackReferences: Long, val globalReferences: Long, val stableReferences: Long)

This class represents statistics of the root set for garbage collector run, separated by root set pools. These nodes are assumed to be used, even if there are no references for them.

Since Kotlin 1.9
Link copied to clipboard
class SweepStatistics(val sweptCount: Long, val keptCount: Long)

This class represents statistics of sweeping in one memory pool.

Since Kotlin 1.9