Types

Link copied to clipboard
@Serializable
data class AddHeapSnapshotChunk(val chunk: String) : HeapProfilerEvent
Link copied to clipboard
@Serializable
data class HeapStatsUpdate(val statsUpdate: List<Int>) : HeapProfilerEvent

If heap objects tracking has been started then backend may send update for one or more fragments

Link copied to clipboard
@Serializable
data class LastSeenObjectId(val lastSeenObjectId: Int, val timestamp: Double) : HeapProfilerEvent

If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.

Link copied to clipboard
@Serializable
data class ReportHeapSnapshotProgress(val done: Int, val total: Int, val finished: Boolean? = null) : HeapProfilerEvent
Link copied to clipboard