public interface Memory
| Modifier and Type | Method and Description |
|---|---|
void |
forciblyPurgeJavaScriptMemory()
Simulate OomIntervention by purging V8 memory.
|
SamplingProfile |
getAllTimeSamplingProfile()
Retrieve native memory allocations profile collected since renderer process startup.
|
SamplingProfile |
getBrowserSamplingProfile()
Retrieve native memory allocations profile collected since browser process startup.
|
DOMCounters |
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.
|
DOMCounters getDOMCounters()
void prepareForLeakDetection()
void forciblyPurgeJavaScriptMemory()
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()
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()
Copyright © 2020. All rights reserved.