Chrome DevTools Protocol

Methods

Memory.forciblyPurgeJavaScriptMemory

Simulate OomIntervention by purging V8 memory.

Memory.getAllTimeSamplingProfile

Retrieve native memory allocations profile collected since renderer process startup.

Return Object
profile
SamplingProfile

Memory.getBrowserSamplingProfile

Retrieve native memory allocations profile collected since browser process startup.

Return Object
profile
SamplingProfile

Memory.getDOMCounters

Return Object
documents
integer
nodes
integer
jsEventListeners
integer

Memory.getSamplingProfile

Retrieve native memory allocations profile collected since last startSampling call.

Return Object
profile
SamplingProfile

Memory.prepareForLeakDetection

Memory.setPressureNotificationsSuppressed

Enable/disable suppressing memory pressure notifications in all processes.

parameters
suppressed
boolean

If true, memory pressure notifications will be suppressed.

Memory.simulatePressureNotification

Simulate a memory pressure notification in all processes.

parameters
level
PressureLevel

Memory pressure level of the notification.

Memory.startSampling

Start collecting native memory profile.

parameters
samplingInterval
integer

Average number of bytes between samples.

suppressRandomness
boolean

Do not randomize intervals between samples.

Memory.stopSampling

Stop collecting native memory profile.

Types

Memory.Module

Executable module information

Type: object

properties
name
string

Name of the module.

uuid
string

UUID of the module.

baseAddress
string

Base address where the module is loaded into memory. Encoded as a decimal or hexadecimal (0x prefixed) string.

size
number

Size of the module in bytes.

Memory.PressureLevel

Memory pressure level.

Allowed Values: moderate, critical

Type: string

Memory.SamplingProfile

Array of heap profile samples.

Type: object

properties
samples
array[ SamplingProfileNode ]
modules
array[ Module ]

Memory.SamplingProfileNode

Heap profile sample.

Type: object

properties
size
number

Size of the sampled allocation.

total
number

Total bytes attributed to this sample.

stack
array[ string ]

Execution stack at the point of allocation.