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.
Since Kotlin
1.9Constructors
Properties
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.
Time, when mutator threads are unsuspended for the first time, mesured by kotlin.system.getTimeNanos.
Time, when the garbage collector thread requested suspension of mutator threads for the first time, mesured by kotlin.system.getTimeNanos.
Time, when mutator threads are suspended for the first time, mesured by kotlin.system.getTimeNanos.
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.
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.
Time, when all memory is reclaimed, measured by kotlin.system.getTimeNanos. If null, memory reclamation is still in progress.
The number of objects in each root set pool. Check RootSetStatistics doc for details.
Time, when mutator threads are unsuspended for the second time, mesured by kotlin.system.getTimeNanos.
Time, when the garbage collector thread requested suspension of mutator threads for the second time, mesured by kotlin.system.getTimeNanos.
Time, when mutator threads are suspended for the second time, mesured by kotlin.system.getTimeNanos.
Time, when garbage collector run is started, meausered by kotlin.system.getTimeNanos.
Sweeping statistics separated by memory pools. The set of memory pools depends on the collector implementation. Can be empty, if collection is in progress.