Class Memory
java.lang.Object
org.openqa.selenium.devtools.v130.memory.Memory
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openqa.selenium.devtools.Command<Void>Simulate OomIntervention by purging V8 memory.static org.openqa.selenium.devtools.Command<SamplingProfile>Retrieve native memory allocations profile collected since renderer process startup.static org.openqa.selenium.devtools.Command<SamplingProfile>Retrieve native memory allocations profile collected since browser process startup.static org.openqa.selenium.devtools.Command<Memory.GetDOMCountersResponse>Retruns current DOM object counters.static org.openqa.selenium.devtools.Command<List<DOMCounter>>Retruns DOM object counters after preparing renderer for leak detection.static org.openqa.selenium.devtools.Command<SamplingProfile>Retrieve native memory allocations profile collected since last `startSampling` call.static org.openqa.selenium.devtools.Command<Void>Prepares for leak detection by terminating workers, stopping spellcheckers, dropping non-essential internal caches, running garbage collections, etc.static org.openqa.selenium.devtools.Command<Void>setPressureNotificationsSuppressed(Boolean suppressed) Enable/disable suppressing memory pressure notifications in all processes.static org.openqa.selenium.devtools.Command<Void>Simulate a memory pressure notification in all processes.static org.openqa.selenium.devtools.Command<Void>startSampling(Optional<Integer> samplingInterval, Optional<Boolean> suppressRandomness) Start collecting native memory profile.static org.openqa.selenium.devtools.Command<Void>Stop collecting native memory profile.
-
Constructor Details
-
Memory
public Memory()
-
-
Method Details
-
getDOMCounters
Retruns current DOM object counters. -
getDOMCountersForLeakDetection
public static org.openqa.selenium.devtools.Command<List<DOMCounter>> getDOMCountersForLeakDetection()Retruns DOM object counters after preparing renderer for leak detection. -
prepareForLeakDetection
Prepares for leak detection by terminating workers, stopping spellcheckers, dropping non-essential internal caches, running garbage collections, etc. -
forciblyPurgeJavaScriptMemory
Simulate OomIntervention by purging V8 memory. -
setPressureNotificationsSuppressed
public static org.openqa.selenium.devtools.Command<Void> setPressureNotificationsSuppressed(Boolean suppressed) Enable/disable suppressing memory pressure notifications in all processes. -
simulatePressureNotification
public static org.openqa.selenium.devtools.Command<Void> simulatePressureNotification(PressureLevel level) Simulate a memory pressure notification in all processes. -
startSampling
public static org.openqa.selenium.devtools.Command<Void> startSampling(Optional<Integer> samplingInterval, Optional<Boolean> suppressRandomness) Start collecting native memory profile. -
stopSampling
Stop collecting native memory profile. -
getAllTimeSamplingProfile
Retrieve native memory allocations profile collected since renderer process startup. -
getBrowserSamplingProfile
Retrieve native memory allocations profile collected since browser process startup. -
getSamplingProfile
Retrieve native memory allocations profile collected since last `startSampling` call.
-