chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.heapprofiler / HeapProfilerDomain

HeapProfilerDomain

class HeapProfilerDomain

Official doc

Functions

addHeapSnapshotChunk

Official doc

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

Official doc

suspend fun collectGarbage(): Unit

disable

Official doc

suspend fun disable(): Unit

enable

Official doc

suspend fun enable(): Unit

events

Subscribes to all events related to this domain.

fun events(): Flow<HeapProfilerEvent>

getHeapObjectId

Official doc

suspend fun getHeapObjectId(input: GetHeapObjectIdRequest): GetHeapObjectIdResponse

getObjectByHeapObjectId

Official doc

suspend fun getObjectByHeapObjectId(input: GetObjectByHeapObjectIdRequest): GetObjectByHeapObjectIdResponse

getSamplingProfile

Official doc

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

Official doc

fun reportHeapSnapshotProgress(): Flow<ReportHeapSnapshotProgressEvent>

resetProfiles

Official doc

fun resetProfiles(): Flow<ResetProfilesEvent>

startSampling

Official doc

suspend fun startSampling(input: StartSamplingRequest): Unit

startTrackingHeapObjects

Official doc

suspend fun startTrackingHeapObjects(input: StartTrackingHeapObjectsRequest): Unit

stopSampling

Official doc

suspend fun stopSampling(): StopSamplingResponse

stopTrackingHeapObjects

Official doc

suspend fun stopTrackingHeapObjects(input: StopTrackingHeapObjectsRequest): Unit

takeHeapSnapshot

Official doc

suspend fun takeHeapSnapshot(input: TakeHeapSnapshotRequest): Unit