Class Memory


  • @Beta
    public class Memory
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Memory()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.openqa.selenium.devtools.Command<java.lang.Void> forciblyPurgeJavaScriptMemory()
      Simulate OomIntervention by purging V8 memory.
      static org.openqa.selenium.devtools.Command<SamplingProfile> getAllTimeSamplingProfile()
      Retrieve native memory allocations profile collected since renderer process startup.
      static org.openqa.selenium.devtools.Command<SamplingProfile> getBrowserSamplingProfile()
      Retrieve native memory allocations profile collected since browser process startup.
      static org.openqa.selenium.devtools.Command<Memory.GetDOMCountersResponse> getDOMCounters()  
      static org.openqa.selenium.devtools.Command<SamplingProfile> getSamplingProfile()
      Retrieve native memory allocations profile collected since last `startSampling` call.
      static org.openqa.selenium.devtools.Command<java.lang.Void> prepareForLeakDetection()  
      static org.openqa.selenium.devtools.Command<java.lang.Void> setPressureNotificationsSuppressed​(java.lang.Boolean suppressed)
      Enable/disable suppressing memory pressure notifications in all processes.
      static org.openqa.selenium.devtools.Command<java.lang.Void> simulatePressureNotification​(PressureLevel level)
      Simulate a memory pressure notification in all processes.
      static org.openqa.selenium.devtools.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 org.openqa.selenium.devtools.Command<java.lang.Void> stopSampling()
      Stop collecting native memory profile.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Memory

        public Memory()
    • Method Detail

      • prepareForLeakDetection

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

        public static org.openqa.selenium.devtools.Command<java.lang.Void> forciblyPurgeJavaScriptMemory()
        Simulate OomIntervention by purging V8 memory.
      • setPressureNotificationsSuppressed

        public static org.openqa.selenium.devtools.Command<java.lang.Void> setPressureNotificationsSuppressed​(java.lang.Boolean suppressed)
        Enable/disable suppressing memory pressure notifications in all processes.
      • simulatePressureNotification

        public static org.openqa.selenium.devtools.Command<java.lang.Void> simulatePressureNotification​(PressureLevel level)
        Simulate a memory pressure notification in all processes.
      • startSampling

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