pl.wendigo.chrome.api.heapprofiler / HeapProfilerOperations

HeapProfilerOperations

class HeapProfilerOperations (source)

HeapProfilerOperations represents HeapProfiler protocol domain request/response operations and events that can be captured.

This API is marked as experimental in protocol definition and can change in the future.

Link
Protocol HeapProfiler domain documentation.

Functions

addHeapSnapshotChunk

fun addHeapSnapshotChunk(): Flowable<AddHeapSnapshotChunkEvent>

Returns observable capturing all HeapProfiler.addHeapSnapshotChunk events.

addHeapSnapshotChunkTimed

fun addHeapSnapshotChunkTimed(): Flowable<Timed<AddHeapSnapshotChunkEvent>>

Returns observable capturing all HeapProfiler.addHeapSnapshotChunk events.

addInspectedHeapObject

fun addInspectedHeapObject(input: AddInspectedHeapObjectRequest): Single<ResponseFrame>

Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).

collectGarbage

fun collectGarbage(): Single<ResponseFrame>

disable

fun disable(): Single<ResponseFrame>

enable

fun enable(): Single<ResponseFrame>

events

fun events(): Flowable<Event>

Returns flowable capturing all HeapProfiler domains events.

getHeapObjectId

fun getHeapObjectId(input: GetHeapObjectIdRequest): Single<GetHeapObjectIdResponse>

getObjectByHeapObjectId

fun getObjectByHeapObjectId(input: GetObjectByHeapObjectIdRequest): Single<GetObjectByHeapObjectIdResponse>

heapStatsUpdate

fun heapStatsUpdate(): Flowable<HeapStatsUpdateEvent>

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

heapStatsUpdateTimed

fun heapStatsUpdateTimed(): Flowable<Timed<HeapStatsUpdateEvent>>

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

lastSeenObjectId

fun lastSeenObjectId(): Flowable<LastSeenObjectIdEvent>

If heap objects tracking has been started then backend regulary 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.

lastSeenObjectIdTimed

fun lastSeenObjectIdTimed(): Flowable<Timed<LastSeenObjectIdEvent>>

If heap objects tracking has been started then backend regulary 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.

reportHeapSnapshotProgress

fun reportHeapSnapshotProgress(): Flowable<ReportHeapSnapshotProgressEvent>

Returns observable capturing all HeapProfiler.reportHeapSnapshotProgress events.

reportHeapSnapshotProgressTimed

fun reportHeapSnapshotProgressTimed(): Flowable<Timed<ReportHeapSnapshotProgressEvent>>

Returns observable capturing all HeapProfiler.reportHeapSnapshotProgress events.

resetProfiles

fun resetProfiles(): Flowable<Event>

Returns observable capturing all HeapProfiler.resetProfiles events.

resetProfilesTimed

fun resetProfilesTimed(): Flowable<Timed<Event>>

Returns observable capturing all HeapProfiler.resetProfiles events.

startSampling

fun startSampling(input: StartSamplingRequest): Single<ResponseFrame>

startTrackingHeapObjects

fun startTrackingHeapObjects(input: StartTrackingHeapObjectsRequest): Single<ResponseFrame>

stopSampling

fun stopSampling(): Single<StopSamplingResponse>

stopTrackingHeapObjects

fun stopTrackingHeapObjects(input: StopTrackingHeapObjectsRequest): Single<ResponseFrame>

takeHeapSnapshot

fun takeHeapSnapshot(input: TakeHeapSnapshotRequest): Single<ResponseFrame>