Interface MemoryAsync


public interface MemoryAsync
  • Method Details

    • forciblyPurgeJavaScriptMemory

      CompletableFuture<Void> forciblyPurgeJavaScriptMemory()
      Simulate OomIntervention by purging V8 memory.
    • getAllTimeSamplingProfile

      CompletableFuture<SamplingProfile> getAllTimeSamplingProfile()
      Retrieve native memory allocations profile collected since renderer process startup.
    • getBrowserSamplingProfile

      CompletableFuture<SamplingProfile> getBrowserSamplingProfile()
      Retrieve native memory allocations profile collected since browser process startup.
    • getDOMCounters

      Returns:
      GetDOMCountersResult
    • getSamplingProfile

      CompletableFuture<SamplingProfile> getSamplingProfile()
      Retrieve native memory allocations profile collected since last startSampling call.
    • prepareForLeakDetection

      CompletableFuture<Void> prepareForLeakDetection()
    • setPressureNotificationsSuppressed

      CompletableFuture<Void> setPressureNotificationsSuppressed(Boolean suppressed)
      Enable/disable suppressing memory pressure notifications in all processes.
      Parameters:
      suppressed - If true, memory pressure notifications will be suppressed.
    • simulatePressureNotification

      CompletableFuture<Void> simulatePressureNotification(PressureLevel level)
      Simulate a memory pressure notification in all processes.
      Parameters:
      level - Memory pressure level of the notification.
    • startSampling

      CompletableFuture<Void> startSampling()
      Start collecting native memory profile.
    • startSampling

      CompletableFuture<Void> startSampling(Integer samplingInterval, Boolean suppressRandomness)
      Start collecting native memory profile.
      Parameters:
      samplingInterval - Average number of bytes between samples.
      suppressRandomness - Do not randomize intervals between samples.
    • stopSampling

      CompletableFuture<Void> stopSampling()
      Stop collecting native memory profile.