Tungsten v0.1.0 Tungsten.CDP.HeapProfiler View Source

HeapProfiler

This domain has no documentation

Link to this section Summary

Link to this section Types

Link to this type

cdp_heap_snapshot_object_id_type() View Source
cdp_heap_snapshot_object_id_type() :: String.t()

HeapProfiler.HeapSnapshotObjectId

Heap snapshot object id.

Link to this type

cdp_sampling_heap_profile_node_type() View Source
cdp_sampling_heap_profile_node_type() :: %{
  call_frame: Tungsten.CDP.Runtime.cdp_call_frame_type(),
  self_size: integer() | float(),
  id: integer(),
  children: [cdp_sampling_heap_profile_node_type()]
}

HeapProfiler.SamplingHeapProfileNode

Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.

Link to this type

cdp_sampling_heap_profile_sample_type() View Source
cdp_sampling_heap_profile_sample_type() :: %{
  size: integer() | float(),
  node_id: integer(),
  ordinal: integer() | float()
}

HeapProfiler.SamplingHeapProfileSample

A single sample from a sampling profile.

Link to this type

cdp_sampling_heap_profile_type() View Source
cdp_sampling_heap_profile_type() :: %{
  head: cdp_sampling_heap_profile_node_type(),
  samples: [cdp_sampling_heap_profile_sample_type()]
}

HeapProfiler.SamplingHeapProfile

Sampling profile.

Link to this section Functions

Link to this function

add_inspected_heap_object(session, parameters, options \\ []) View Source
add_inspected_heap_object(
  GenServer.server(),
  %{heap_object_id: cdp_heap_snapshot_object_id_type()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

HeapProfiler.addInspectedHeapObject

Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).

Link to this function

collect_garbage(session, parameters \\ %{}, options \\ []) View Source
collect_garbage(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
  {:ok, map()} | {:error, term()}

HeapProfiler.collectGarbage

This command has no documentation

Link to this function

disable(session, parameters \\ %{}, options \\ []) View Source
disable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
  {:ok, map()} | {:error, term()}

HeapProfiler.disable

This command has no documentation

Link to this function

enable(session, parameters \\ %{}, options \\ []) View Source
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
  {:ok, map()} | {:error, term()}

HeapProfiler.enable

This command has no documentation

Link to this function

get_heap_object_id(session, parameters, options \\ []) View Source
get_heap_object_id(
  GenServer.server(),
  %{object_id: Tungsten.CDP.Runtime.cdp_remote_object_id_type()},
  Tungsten.Connection.exec_options()
) ::
  {:ok, %{heap_snapshot_object_id: cdp_heap_snapshot_object_id_type()}}
  | {:error, term()}

HeapProfiler.getHeapObjectId

This command has no documentation

Link to this function

get_object_by_heap_object_id(session, parameters, options \\ []) View Source
get_object_by_heap_object_id(
  GenServer.server(),
  %{
    :object_id => cdp_heap_snapshot_object_id_type(),
    optional(:object_group) => String.t()
  },
  Tungsten.Connection.exec_options()
) ::
  {:ok, %{result: Tungsten.CDP.Runtime.cdp_remote_object_type()}}
  | {:error, term()}

HeapProfiler.getObjectByHeapObjectId

This command has no documentation

Link to this function

get_sampling_profile(session, parameters \\ %{}, options \\ []) View Source
get_sampling_profile(
  GenServer.server(),
  map(),
  Tungsten.Connection.exec_options()
) :: {:ok, %{profile: cdp_sampling_heap_profile_type()}} | {:error, term()}

HeapProfiler.getSamplingProfile

This command has no documentation

Link to this function

start_sampling(session, parameters \\ %{}, options \\ []) View Source
start_sampling(
  GenServer.server(),
  %{optional(:sampling_interval) => integer() | float()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

HeapProfiler.startSampling

This command has no documentation

Link to this function

start_tracking_heap_objects(session, parameters \\ %{}, options \\ []) View Source
start_tracking_heap_objects(
  GenServer.server(),
  %{optional(:track_allocations) => boolean()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

HeapProfiler.startTrackingHeapObjects

This command has no documentation

Link to this function

stop_sampling(session, parameters \\ %{}, options \\ []) View Source
stop_sampling(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
  {:ok, %{profile: cdp_sampling_heap_profile_type()}} | {:error, term()}

HeapProfiler.stopSampling

This command has no documentation

Link to this function

stop_tracking_heap_objects(session, parameters \\ %{}, options \\ []) View Source
stop_tracking_heap_objects(
  GenServer.server(),
  %{optional(:report_progress) => boolean()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

HeapProfiler.stopTrackingHeapObjects

This command has no documentation

Link to this function

take_heap_snapshot(session, parameters \\ %{}, options \\ []) View Source
take_heap_snapshot(
  GenServer.server(),
  %{optional(:report_progress) => boolean()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

HeapProfiler.takeHeapSnapshot

This command has no documentation