Class Memory


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

      • Memory

        public Memory()
    • Method Detail

      • 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.