chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.memory / MemoryDomain

MemoryDomain

class MemoryDomain

Functions

forciblyPurgeJavaScriptMemory

Simulate OomIntervention by purging V8 memory.

suspend fun forciblyPurgeJavaScriptMemory(): Unit

getAllTimeSamplingProfile

Retrieve native memory allocations profile collected since renderer process startup.

suspend fun getAllTimeSamplingProfile(): GetAllTimeSamplingProfileResponse

getBrowserSamplingProfile

Retrieve native memory allocations profile collected since browser process startup.

suspend fun getBrowserSamplingProfile(): GetBrowserSamplingProfileResponse

getDOMCounters

suspend fun getDOMCounters(): GetDOMCountersResponse

getSamplingProfile

Retrieve native memory allocations profile collected since last startSampling call.

suspend fun getSamplingProfile(): GetSamplingProfileResponse

prepareForLeakDetection

suspend fun prepareForLeakDetection(): Unit

setPressureNotificationsSuppressed

Enable/disable suppressing memory pressure notifications in all processes.

suspend fun setPressureNotificationsSuppressed(input: SetPressureNotificationsSuppressedRequest): Unit

simulatePressureNotification

Simulate a memory pressure notification in all processes.

suspend fun simulatePressureNotification(input: SimulatePressureNotificationRequest): Unit

startSampling

Start collecting native memory profile.

suspend fun startSampling(input: StartSamplingRequest): Unit

stopSampling

Stop collecting native memory profile.

suspend fun stopSampling(): Unit