Methods

Chrome DevTools

Memory.forciblyPurgeJavaScriptMemory #

Simulate OomIntervention by purging V8 memory.


Chrome DevTools

Memory.getAllTimeSamplingProfile #

Retrieve native memory allocations profile collected since renderer process startup.

Return object


Chrome DevTools

Memory.getBrowserSamplingProfile #

Retrieve native memory allocations profile collected since browser process startup.

Return object


Chrome DevTools

Memory.getDOMCounters #

Return object

documents
integer
nodes
integer
jsEventListeners
integer

Chrome DevTools

Memory.getSamplingProfile #

Retrieve native memory allocations profile collected since last startSampling call.

Return object


Chrome DevTools

Memory.prepareForLeakDetection #


Chrome DevTools

Memory.setPressureNotificationsSuppressed #

Enable/disable suppressing memory pressure notifications in all processes.

Parameters

suppressed
boolean

If true, memory pressure notifications will be suppressed.


Chrome DevTools

Memory.simulatePressureNotification #

Simulate a memory pressure notification in all processes.

Parameters

level
PressureLevel

Memory pressure level of the notification.


Chrome DevTools

Memory.startSampling #

Start collecting native memory profile.

Parameters

samplingInterval
Optional
integer

Average number of bytes between samples.

suppressRandomness
Optional
boolean

Do not randomize intervals between samples.


Chrome DevTools

Memory.stopSampling #

Stop collecting native memory profile.

Types

Chrome DevTools

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.


Chrome DevTools

Memory.PressureLevel #

Memory pressure level.

Type: string

Allowed values: moderate, critical


Chrome DevTools

Memory.SamplingProfile #

Array of heap profile samples.

Type: object

Properties

samples
modules
array[ Module ]

Chrome DevTools

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.