CDPotion.Domain.Memory (cdpotion v0.1.0)
Summary
Functions
Simulate OomIntervention by purging V8 memory.
Retrieve native memory allocations profile collected since renderer process startup.
Retrieve native memory allocations profile collected since browser process startup.
Retrieve native memory allocations profile collected since last
startSampling
call.
Enable/disable suppressing memory pressure notifications in all processes.
Simulate a memory pressure notification in all processes.
Start collecting native memory profile.
Stop collecting native memory profile.
Functions
forcibly_purge_java_script_memory()
Simulate OomIntervention by purging V8 memory.
get_all_time_sampling_profile()
Retrieve native memory allocations profile collected since renderer process startup.
get_browser_sampling_profile()
Retrieve native memory allocations profile collected since browser process startup.
get_dom_counters()
get_sampling_profile()
Retrieve native memory allocations profile collected since last
startSampling
call.
prepare_for_leak_detection()
set_pressure_notifications_suppressed(suppressed)
Enable/disable suppressing memory pressure notifications in all processes.
Parameters:
suppressed:boolean
: If true, memory pressure notifications will be suppressed.
simulate_pressure_notification(level)
Simulate a memory pressure notification in all processes.
Parameters:
level:PressureLevel
: Memory pressure level of the notification.
start_sampling(sampling_interval \\ nil, suppress_randomness \\ nil)
Start collecting native memory profile.
Parameters:
samplingInterval:integer
: (Optional) Average number of bytes between samples.suppressRandomness:boolean
: (Optional) Do not randomize intervals between samples.
stop_sampling()
Stop collecting native memory profile.