Memory Domain
Methods
- Memory.forciblyPurgeJavaScriptMemory
- Memory.getAllTimeSamplingProfile
- Memory.getBrowserSamplingProfile
- Memory.getDOMCounters
- Memory.getDOMCountersForLeakDetection
- 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.getDOMCounters #
Retruns current DOM object counters.
Return object
documents integernodes integerjsEventListeners integerMemory.getDOMCountersForLeakDetection #
Retruns DOM object counters after preparing renderer for leak detection.
Return object
counters array[ DOMCounter ]DOM object counters.
Memory.getSamplingProfile #
Retrieve native memory allocations profile collected since last
startSampling call.
Return object
profile Memory.prepareForLeakDetection #
Prepares for leak detection by terminating workers, stopping spellcheckers, dropping non-essential internal caches, running garbage collections, etc.
Memory.setPressureNotificationsSuppressed #
Enable/disable suppressing memory pressure notifications in all processes.
Parameters
suppressed booleanIf 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
samplingIntervalOptional
integerAverage number of bytes between samples.
suppressRandomnessOptional
booleanDo not randomize intervals between samples.
Types
Memory.DOMCounter #
DOM object counter data.
Type: object
Properties
name stringObject name. Note: object names should be presumed volatile and clients should not expect the returned names to be consistent across runs.
count integerObject count.
Memory.Module #
Executable module information
Type: object
Properties
name stringName of the module.
uuid stringUUID of the module.
baseAddress stringBase address where the module is loaded into memory. Encoded as a decimal or hexadecimal (0x prefixed) string.
size numberSize 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 numberSize of the sampled allocation.
total numberTotal bytes attributed to this sample.
stack array[ string ]Execution stack at the point of allocation.