Tungsten v0.1.0 Tungsten.CDP.Memory View Source
This domain has no documentation
Link to this section Summary
Link to this section Types
cdp_module_type() View Source
Executable module information
cdp_pressure_level_type()
View Source
cdp_pressure_level_type() :: :critical | :moderate
cdp_pressure_level_type() :: :critical | :moderate
Memory pressure level.
cdp_sampling_profile_node_type() View Source
Heap profile sample.
cdp_sampling_profile_type()
View Source
cdp_sampling_profile_type() :: %{
samples: [cdp_sampling_profile_node_type()],
modules: [cdp_module_type()]
}
cdp_sampling_profile_type() :: %{
samples: [cdp_sampling_profile_node_type()],
modules: [cdp_module_type()]
}
Array of heap profile samples.
Link to this section Functions
forcibly_purge_java_script_memory(session, parameters \\ %{}, options \\ [])
View Source
forcibly_purge_java_script_memory(
GenServer.server(),
map(),
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
forcibly_purge_java_script_memory( GenServer.server(), map(), Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
Memory.forciblyPurgeJavaScriptMemory
Simulate OomIntervention by purging V8 memory.
get_all_time_sampling_profile(session, parameters \\ %{}, options \\ [])
View Source
get_all_time_sampling_profile(
GenServer.server(),
map(),
Tungsten.Connection.exec_options()
) :: {:ok, %{profile: cdp_sampling_profile_type()}} | {:error, term()}
get_all_time_sampling_profile( GenServer.server(), map(), Tungsten.Connection.exec_options() ) :: {:ok, %{profile: cdp_sampling_profile_type()}} | {:error, term()}
Memory.getAllTimeSamplingProfile
Retrieve native memory allocations profile collected since renderer process startup.
get_browser_sampling_profile(session, parameters \\ %{}, options \\ [])
View Source
get_browser_sampling_profile(
GenServer.server(),
map(),
Tungsten.Connection.exec_options()
) :: {:ok, %{profile: cdp_sampling_profile_type()}} | {:error, term()}
get_browser_sampling_profile( GenServer.server(), map(), Tungsten.Connection.exec_options() ) :: {:ok, %{profile: cdp_sampling_profile_type()}} | {:error, term()}
Memory.getBrowserSamplingProfile
Retrieve native memory allocations profile collected since browser process startup.
get_dom_counters(session, parameters \\ %{}, options \\ [])
View Source
get_dom_counters(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok,
%{documents: integer(), nodes: integer(), js_event_listeners: integer()}}
| {:error, term()}
get_dom_counters(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, %{documents: integer(), nodes: integer(), js_event_listeners: integer()}} | {:error, term()}
This command has no documentation
get_sampling_profile(session, parameters \\ %{}, options \\ [])
View Source
get_sampling_profile(
GenServer.server(),
map(),
Tungsten.Connection.exec_options()
) :: {:ok, %{profile: cdp_sampling_profile_type()}} | {:error, term()}
get_sampling_profile( GenServer.server(), map(), Tungsten.Connection.exec_options() ) :: {:ok, %{profile: cdp_sampling_profile_type()}} | {:error, term()}
Retrieve native memory allocations profile collected since last
startSampling call.
prepare_for_leak_detection(session, parameters \\ %{}, options \\ [])
View Source
prepare_for_leak_detection(
GenServer.server(),
map(),
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
prepare_for_leak_detection( GenServer.server(), map(), Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
Memory.prepareForLeakDetection
This command has no documentation
set_pressure_notifications_suppressed(session, parameters, options \\ [])
View Source
set_pressure_notifications_suppressed(
GenServer.server(),
%{suppressed: boolean()},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
set_pressure_notifications_suppressed( GenServer.server(), %{suppressed: boolean()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
Memory.setPressureNotificationsSuppressed
Enable/disable suppressing memory pressure notifications in all processes.
simulate_pressure_notification(session, parameters, options \\ [])
View Source
simulate_pressure_notification(
GenServer.server(),
%{level: cdp_pressure_level_type()},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
simulate_pressure_notification( GenServer.server(), %{level: cdp_pressure_level_type()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
Memory.simulatePressureNotification
Simulate a memory pressure notification in all processes.
start_sampling(session, parameters \\ %{}, options \\ [])
View Source
start_sampling(
GenServer.server(),
%{
optional(:sampling_interval) => integer(),
optional(:suppress_randomness) => boolean()
},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
start_sampling( GenServer.server(), %{ optional(:sampling_interval) => integer(), optional(:suppress_randomness) => boolean() }, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
Start collecting native memory profile.
stop_sampling(session, parameters \\ %{}, options \\ [])
View Source
stop_sampling(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok, map()} | {:error, term()}
stop_sampling(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, map()} | {:error, term()}
Stop collecting native memory profile.