Class Memory
- java.lang.Object
-
- org.openqa.selenium.devtools.memory.Memory
-
@Beta public class Memory extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Memory.GetDOMCountersResponse
-
Constructor Summary
Constructors Constructor Description Memory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Command<java.lang.Void>
forciblyPurgeJavaScriptMemory()
Simulate OomIntervention by purging V8 memory.static Command<SamplingProfile>
getAllTimeSamplingProfile()
Retrieve native memory allocations profile collected since renderer process startup.static Command<SamplingProfile>
getBrowserSamplingProfile()
Retrieve native memory allocations profile collected since browser process startup.static Command<Memory.GetDOMCountersResponse>
getDOMCounters()
static Command<SamplingProfile>
getSamplingProfile()
Retrieve native memory allocations profile collected since last `startSampling` call.static Command<java.lang.Void>
prepareForLeakDetection()
static Command<java.lang.Void>
setPressureNotificationsSuppressed(java.lang.Boolean suppressed)
Enable/disable suppressing memory pressure notifications in all processes.static Command<java.lang.Void>
simulatePressureNotification(PressureLevel level)
Simulate a memory pressure notification in all processes.static Command<java.lang.Void>
startSampling(java.util.Optional<java.lang.Integer> samplingInterval, java.util.Optional<java.lang.Boolean> suppressRandomness)
Start collecting native memory profile.static Command<java.lang.Void>
stopSampling()
Stop collecting native memory profile.
-
-
-
Method Detail
-
getDOMCounters
public static Command<Memory.GetDOMCountersResponse> getDOMCounters()
-
prepareForLeakDetection
public static Command<java.lang.Void> prepareForLeakDetection()
-
forciblyPurgeJavaScriptMemory
public static Command<java.lang.Void> forciblyPurgeJavaScriptMemory()
Simulate OomIntervention by purging V8 memory.
-
setPressureNotificationsSuppressed
public static Command<java.lang.Void> setPressureNotificationsSuppressed(java.lang.Boolean suppressed)
Enable/disable suppressing memory pressure notifications in all processes.
-
simulatePressureNotification
public static Command<java.lang.Void> simulatePressureNotification(PressureLevel level)
Simulate a memory pressure notification in all processes.
-
startSampling
public static Command<java.lang.Void> startSampling(java.util.Optional<java.lang.Integer> samplingInterval, java.util.Optional<java.lang.Boolean> suppressRandomness)
Start collecting native memory profile.
-
stopSampling
public static Command<java.lang.Void> stopSampling()
Stop collecting native memory profile.
-
getAllTimeSamplingProfile
public static Command<SamplingProfile> getAllTimeSamplingProfile()
Retrieve native memory allocations profile collected since renderer process startup.
-
getBrowserSamplingProfile
public static Command<SamplingProfile> getBrowserSamplingProfile()
Retrieve native memory allocations profile collected since browser process startup.
-
getSamplingProfile
public static Command<SamplingProfile> getSamplingProfile()
Retrieve native memory allocations profile collected since last `startSampling` call.
-
-