public interface Memory
Modifier and Type | Method and Description |
---|---|
SamplingProfile |
getAllTimeSamplingProfile()
Retrieve native memory allocations profile
collected since renderer process startup.
|
SamplingProfile |
getBrowserSamplingProfile()
Retrieve native memory allocations profile
collected since browser process startup.
|
GetDOMCountersResult |
getDOMCounters() |
SamplingProfile |
getSamplingProfile()
Retrieve native memory allocations profile collected since last
startSampling call. |
void |
prepareForLeakDetection() |
void |
setPressureNotificationsSuppressed(Boolean suppressed)
Enable/disable suppressing memory pressure notifications in all processes.
|
void |
simulatePressureNotification(PressureLevel level)
Simulate a memory pressure notification in all processes.
|
void |
startSampling()
Start collecting native memory profile.
|
void |
startSampling(Integer samplingInterval,
Boolean suppressRandomness)
Start collecting native memory profile.
|
void |
stopSampling()
Stop collecting native memory profile.
|
GetDOMCountersResult getDOMCounters()
void prepareForLeakDetection()
void setPressureNotificationsSuppressed(Boolean suppressed)
suppressed
- If true, memory pressure notifications will be suppressed.void simulatePressureNotification(PressureLevel level)
level
- Memory pressure level of the notification.void startSampling(Integer samplingInterval, Boolean suppressRandomness)
samplingInterval
- Average number of bytes between samples.suppressRandomness
- Do not randomize intervals between samples.void stopSampling()
SamplingProfile getAllTimeSamplingProfile()
SamplingProfile getBrowserSamplingProfile()
SamplingProfile getSamplingProfile()
startSampling
call.void startSampling()
Copyright © 2017, 2019–2019 WebFolder OÜ. All rights reserved.