java.lang.Object
org.openqa.selenium.devtools.v85.memory.Memory

@Beta public class Memory extends Object
  • Constructor Details

    • Memory

      public Memory()
  • Method Details

    • getDOMCounters

      public static org.openqa.selenium.devtools.Command<Memory.GetDOMCountersResponse> getDOMCounters()
    • prepareForLeakDetection

      public static org.openqa.selenium.devtools.Command<Void> prepareForLeakDetection()
    • forciblyPurgeJavaScriptMemory

      public static org.openqa.selenium.devtools.Command<Void> 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

      public static org.openqa.selenium.devtools.Command<Void> stopSampling()
      Stop collecting native memory profile.
    • getAllTimeSamplingProfile

      public static org.openqa.selenium.devtools.Command<SamplingProfile> getAllTimeSamplingProfile()
      Retrieve native memory allocations profile collected since renderer process startup.
    • getBrowserSamplingProfile

      public static org.openqa.selenium.devtools.Command<SamplingProfile> getBrowserSamplingProfile()
      Retrieve native memory allocations profile collected since browser process startup.
    • getSamplingProfile

      public static org.openqa.selenium.devtools.Command<SamplingProfile> getSamplingProfile()
      Retrieve native memory allocations profile collected since last `startSampling` call.