Memory
ExperimentalNo symbols match your filter.
Commands
Memory.getDOMCounters
Retruns current DOM object counters.
Return Object
| Name | Type | Description |
|---|---|---|
documents
|
integer |
|
nodes
|
integer |
|
jsEventListeners
|
integer |
Memory.getDOMCountersForLeakDetection
Retruns DOM object counters after preparing renderer for leak detection.
Return Object
| Name | Type | Description |
|---|---|---|
counters
|
array<DOMCounter> |
DOM object counters. |
Memory.prepareForLeakDetection
Prepares for leak detection by terminating workers, stopping spellcheckers,
dropping non-essential internal caches, running garbage collections, etc.
Memory.forciblyPurgeJavaScriptMemory
Simulate OomIntervention by purging V8 memory.
Memory.setPressureNotificationsSuppressed
Enable/disable suppressing memory pressure notifications in all processes.
Parameters
| Name | Type | Description |
|---|---|---|
suppressed
|
boolean |
If true, memory pressure notifications will be suppressed. |
Memory.simulatePressureNotification
Simulate a memory pressure notification in all processes.
Parameters
| Name | Type | Description |
|---|---|---|
level
|
PressureLevel |
Memory pressure level of the notification. |
Memory.startSampling
Start collecting native memory profile.
Parameters
| Name | Type | Description |
|---|---|---|
samplingInterval
(optional) |
integer |
Average number of bytes between samples. |
suppressRandomness
(optional) |
boolean |
Do not randomize intervals between samples. |
Memory.stopSampling
Stop collecting native memory profile.
Memory.getAllTimeSamplingProfile
Retrieve native memory allocations profile
collected since renderer process startup.
Return Object
| Name | Type | Description |
|---|---|---|
profile
|
SamplingProfile |
Memory.getBrowserSamplingProfile
Retrieve native memory allocations profile
collected since browser process startup.
Return Object
| Name | Type | Description |
|---|---|---|
profile
|
SamplingProfile |
Memory.getSamplingProfile
Retrieve native memory allocations profile collected since last
`startSampling` call.
Return Object
| Name | Type | Description |
|---|---|---|
profile
|
SamplingProfile |
Types
PressureLevel
(string)
Memory pressure level.
Allowed Values
moderatecritical
SamplingProfileNode
(object)
Heap profile sample.
Properties
| Name | Type | Description |
|---|---|---|
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. |
SamplingProfile
(object)
Array of heap profile samples.
Properties
| Name | Type | Description |
|---|---|---|
samples
|
array<SamplingProfileNode> |
|
modules
|
array<Module> |
Module
(object)
Executable module information
Properties
| Name | Type | Description |
|---|---|---|
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. |
DOMCounter
(object)
DOM object counter data.
Properties
| Name | Type | Description |
|---|---|---|
name
|
string |
Object name. Note: object names should be presumed volatile and clients should not expect the returned names to be consistent across runs. |
count
|
integer |
Object count. |