Package io.webfolder.cdp.command
Interface Memory
public interface Memory
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Simulate OomIntervention by purging V8 memory.Retrieve native memory allocations profile collected since renderer process startup.Retrieve native memory allocations profile collected since browser process startup.Retrieve native memory allocations profile collected since last startSampling call.void
void
setPressureNotificationsSuppressed
(Boolean suppressed) Enable/disable suppressing memory pressure notifications in all processes.void
Simulate a memory pressure notification in all processes.void
Start collecting native memory profile.void
startSampling
(Integer samplingInterval, Boolean suppressRandomness) Start collecting native memory profile.void
Stop collecting native memory profile.
-
Method Details
-
forciblyPurgeJavaScriptMemory
void forciblyPurgeJavaScriptMemory()Simulate OomIntervention by purging V8 memory. -
getAllTimeSamplingProfile
SamplingProfile getAllTimeSamplingProfile()Retrieve native memory allocations profile collected since renderer process startup. -
getBrowserSamplingProfile
SamplingProfile getBrowserSamplingProfile()Retrieve native memory allocations profile collected since browser process startup. -
getDOMCounters
GetDOMCountersResult getDOMCounters()- Returns:
- GetDOMCountersResult
-
getSamplingProfile
SamplingProfile getSamplingProfile()Retrieve native memory allocations profile collected since last startSampling call. -
prepareForLeakDetection
void prepareForLeakDetection() -
setPressureNotificationsSuppressed
Enable/disable suppressing memory pressure notifications in all processes.- Parameters:
suppressed
- If true, memory pressure notifications will be suppressed.
-
simulatePressureNotification
Simulate a memory pressure notification in all processes.- Parameters:
level
- Memory pressure level of the notification.
-
startSampling
void startSampling()Start collecting native memory profile. -
startSampling
Start collecting native memory profile.- Parameters:
samplingInterval
- Average number of bytes between samples.suppressRandomness
- Do not randomize intervals between samples.
-
stopSampling
void stopSampling()Stop collecting native memory profile.
-