class HeapProfilerDomain
addHeapSnapshotChunk |
fun addHeapSnapshotChunk(): Flow<AddHeapSnapshotChunkEvent> |
addInspectedHeapObject |
Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). suspend fun addInspectedHeapObject(input: AddInspectedHeapObjectRequest): Unit |
collectGarbage |
suspend fun collectGarbage(): Unit |
disable |
suspend fun disable(): Unit |
enable |
suspend fun enable(): Unit |
events |
Subscribes to all events related to this domain. fun events(): Flow<HeapProfilerEvent> |
getHeapObjectId |
suspend fun getHeapObjectId(input: GetHeapObjectIdRequest): GetHeapObjectIdResponse |
getObjectByHeapObjectId |
suspend fun getObjectByHeapObjectId(input: GetObjectByHeapObjectIdRequest): GetObjectByHeapObjectIdResponse |
getSamplingProfile |
suspend fun getSamplingProfile(): GetSamplingProfileResponse |
heapStatsUpdate |
If heap objects tracking has been started then backend may send update for one or more fragments fun heapStatsUpdate(): Flow<HeapStatsUpdateEvent> |
lastSeenObjectId |
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. fun lastSeenObjectId(): Flow<LastSeenObjectIdEvent> |
reportHeapSnapshotProgress |
fun reportHeapSnapshotProgress(): Flow<ReportHeapSnapshotProgressEvent> |
resetProfiles |
fun resetProfiles(): Flow<ResetProfilesEvent> |
startSampling |
suspend fun startSampling(input: StartSamplingRequest): Unit |
startTrackingHeapObjects |
suspend fun startTrackingHeapObjects(input: StartTrackingHeapObjectsRequest): Unit |
stopSampling |
suspend fun stopSampling(): StopSamplingResponse |
stopTrackingHeapObjects |
suspend fun stopTrackingHeapObjects(input: StopTrackingHeapObjectsRequest): Unit |
takeHeapSnapshot |
suspend fun takeHeapSnapshot(input: TakeHeapSnapshotRequest): Unit |