Memory Domain
Methods
- Memory.forciblyPurgeJavaScriptMemory
- Memory.getAllTimeSamplingProfile
- Memory.getBrowserSamplingProfile
- Memory.getDOMCounters
- Memory.getSamplingProfile
- Memory.prepareForLeakDetection
- Memory.setPressureNotificationsSuppressed
- Memory.simulatePressureNotification
- Memory.startSampling
- Memory.stopSampling
Types
Methods
Memory.getAllTimeSamplingProfile #
Retrieve native memory allocations profile collected since renderer process startup.
Return object
profile
Memory.getBrowserSamplingProfile #
Retrieve native memory allocations profile collected since browser process startup.
Return object
profile
Memory.getSamplingProfile #
Retrieve native memory allocations profile collected since last
startSampling
call.
Return object
profile
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
Memory pressure level of the notification.
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.
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.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.