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.

Stop collecting native memory profile.

Functions

Link to this function

forcibly_purge_java_script_memory()

Simulate OomIntervention by purging V8 memory.

Link to this function

get_all_time_sampling_profile()

Retrieve native memory allocations profile collected since renderer process startup.

Link to this function

get_browser_sampling_profile()

Retrieve native memory allocations profile collected since browser process startup.

Link to this function

get_dom_counters()

Link to this function

get_sampling_profile()

Retrieve native memory allocations profile collected since last startSampling call.

Link to this function

prepare_for_leak_detection()

Link to this function

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.
Link to this function

simulate_pressure_notification(level)

Simulate a memory pressure notification in all processes.

Parameters:

  • level:PressureLevel: Memory pressure level of the notification.
Link to this function

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.
Link to this function

stop_sampling()

Stop collecting native memory profile.