pl.wendigo.chrome.api.memory / MemoryOperations

MemoryOperations

class MemoryOperations (source)

MemoryOperations represents Memory 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 Memory domain documentation.

Functions

events

fun events(): Flowable<Event>

Returns flowable capturing all Memory domains events.

forciblyPurgeJavaScriptMemory

fun forciblyPurgeJavaScriptMemory(): Single<ResponseFrame>

Simulate OomIntervention by purging V8 memory.

getAllTimeSamplingProfile

fun getAllTimeSamplingProfile(): Single<GetAllTimeSamplingProfileResponse>

Retrieve native memory allocations profile collected since renderer process startup.

getBrowserSamplingProfile

fun getBrowserSamplingProfile(): Single<GetBrowserSamplingProfileResponse>

Retrieve native memory allocations profile collected since browser process startup.

getDOMCounters

fun getDOMCounters(): Single<GetDOMCountersResponse>

getSamplingProfile

fun getSamplingProfile(): Single<GetSamplingProfileResponse>

Retrieve native memory allocations profile collected since last startSampling call.

prepareForLeakDetection

fun prepareForLeakDetection(): Single<ResponseFrame>

setPressureNotificationsSuppressed

fun setPressureNotificationsSuppressed(input: SetPressureNotificationsSuppressedRequest): Single<ResponseFrame>

Enable/disable suppressing memory pressure notifications in all processes.

simulatePressureNotification

fun simulatePressureNotification(input: SimulatePressureNotificationRequest): Single<ResponseFrame>

Simulate a memory pressure notification in all processes.

startSampling

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

Start collecting native memory profile.

stopSampling

fun stopSampling(): Single<ResponseFrame>

Stop collecting native memory profile.