@NativeRuntimeApi class GCInfo
This class represents statistics about the single run of the garbage collector. It is supposed to be used for testing and debugging purposes only.
This class represents statistics about the single run of the garbage collector. It is supposed to be used for testing and debugging purposes only.
GCInfo( epoch: Long, startTimeNs: Long, endTimeNs: Long, pauseStartTimeNs: Long, pauseEndTimeNs: Long, postGcCleanupTimeNs: Long?, rootSet: RootSetStatistics, markedCount: Long, sweepStatistics: Map<String, SweepStatistics>, memoryUsageBefore: Map<String, MemoryUsage>, memoryUsageAfter: Map<String, MemoryUsage>)
Time, when garbage collector run is ended, measured by kotlin.system.getTimeNanos. After this point, most of the memory is reclaimed, and a new garbage collector run can start.
val endTimeNs: Long
ID of garbage collector run.
val epoch: Long
How many objects were processed during marking phase.
val markedCount: Long
Memory usage at the start of garbage collector run, separated by memory pools. The set of memory pools depends on the collector implementation. Can be empty, if collection is in progress.
val memoryUsageAfter: Map<String, MemoryUsage>
Memory usage at the end of garbage collector run, separated by memory pools. The set of memory pools depends on the collector implementation. Can be empty, if collection is in progress.
val memoryUsageBefore: Map<String, MemoryUsage>
Time, when mutator threads are unsuspended, mesured by kotlin.system.getTimeNanos.
val pauseEndTimeNs: Long
Time, when mutator threads are suspended, mesured by kotlin.system.getTimeNanos.
val pauseStartTimeNs: Long
Time, when all memory is reclaimed, measured by kotlin.system.getTimeNanos. If null, memory reclamation is still in progress.
val postGcCleanupTimeNs: Long?
The number of objects in each root set pool. Check RootSetStatistics doc for details.
val rootSet: RootSetStatistics
Time, when garbage collector run is started, meausered by kotlin.system.getTimeNanos.
val startTimeNs: Long
Sweeping statistics separated by memory pools. The set of memory pools depends on the collector implementation. Can be empty, if collection is in progress.
val sweepStatistics: Map<String, SweepStatistics>
© 2010–2023 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.runtime/-g-c-info/index.html