Package io.webfolder.cdp.command
Interface Memory
public interface Memory
-
Method Summary
Modifier and Type Method Description SamplingProfilegetAllTimeSamplingProfile()Retrieve native memory allocations profile collected since renderer process startup.SamplingProfilegetBrowserSamplingProfile()Retrieve native memory allocations profile collected since browser process startup.GetDOMCountersResultgetDOMCounters()SamplingProfilegetSamplingProfile()Retrieve native memory allocations profile collected since laststartSamplingcall.voidprepareForLeakDetection()voidsetPressureNotificationsSuppressed(java.lang.Boolean suppressed)Enable/disable suppressing memory pressure notifications in all processes.voidsimulatePressureNotification(PressureLevel level)Simulate a memory pressure notification in all processes.voidstartSampling()Start collecting native memory profile.voidstartSampling(java.lang.Integer samplingInterval, java.lang.Boolean suppressRandomness)Start collecting native memory profile.voidstopSampling()Stop collecting native memory profile.
-
Method Details
-
getDOMCounters
GetDOMCountersResult getDOMCounters()- Returns:
- GetDOMCountersResult
-
prepareForLeakDetection
void prepareForLeakDetection() -
setPressureNotificationsSuppressed
void setPressureNotificationsSuppressed(java.lang.Boolean suppressed)Enable/disable suppressing memory pressure notifications in all processes.- Parameters:
suppressed- If true, memory pressure notifications will be suppressed.
-
simulatePressureNotification
Simulate a memory pressure notification in all processes.- Parameters:
level- Memory pressure level of the notification.
-
startSampling
void startSampling(java.lang.Integer samplingInterval, java.lang.Boolean suppressRandomness)Start collecting native memory profile.- Parameters:
samplingInterval- Average number of bytes between samples.suppressRandomness- Do not randomize intervals between samples.
-
stopSampling
void stopSampling()Stop collecting native memory profile. -
getAllTimeSamplingProfile
SamplingProfile getAllTimeSamplingProfile()Retrieve native memory allocations profile collected since renderer process startup. -
getBrowserSamplingProfile
SamplingProfile getBrowserSamplingProfile()Retrieve native memory allocations profile collected since browser process startup. -
getSamplingProfile
SamplingProfile getSamplingProfile()Retrieve native memory allocations profile collected since laststartSamplingcall. -
startSampling
void startSampling()Start collecting native memory profile.
-