pl.wendigo.chrome.domain.heapprofiler / HeapProfilerDomain

HeapProfilerDomain

class HeapProfilerDomain (source)

HeapProfilerDomain represents remote debugger protocol domain.

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<ProtocolEvent>

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<ProtocolEvent>

Returns observable capturing all HeapProfiler.resetProfiles events.

resetProfilesTimed

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

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>