Tungsten v0.1.0 Tungsten.CDP.HeapProfiler View Source
This domain has no documentation
Link to this section Summary
Link to this section Types
cdp_heap_snapshot_object_id_type()
View Source
cdp_heap_snapshot_object_id_type() :: String.t()
cdp_heap_snapshot_object_id_type() :: String.t()
HeapProfiler.HeapSnapshotObjectId
Heap snapshot object id.
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()]
}
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.
cdp_sampling_heap_profile_sample_type() View Source
HeapProfiler.SamplingHeapProfileSample
A single sample from a sampling profile.
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()]
}
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
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()}
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).
collect_garbage(session, parameters \\ %{}, options \\ [])
View Source
collect_garbage(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok, map()} | {:error, term()}
collect_garbage(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, map()} | {:error, term()}
This command has no documentation
disable(session, parameters \\ %{}, options \\ [])
View Source
disable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok, map()} | {:error, term()}
disable(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, map()} | {:error, term()}
This command has no documentation
enable(session, parameters \\ %{}, options \\ [])
View Source
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
{:ok, map()} | {:error, term()}
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, map()} | {:error, term()}
This command has no documentation
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()}
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()}
This command has no documentation
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()}
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
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()}
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
start_sampling(session, parameters \\ %{}, options \\ [])
View Source
start_sampling(
GenServer.server(),
%{optional(:sampling_interval) => integer() | float()},
Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}
start_sampling( GenServer.server(), %{optional(:sampling_interval) => integer() | float()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
This command has no documentation
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()}
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
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()}
stop_sampling(GenServer.server(), map(), Tungsten.Connection.exec_options()) :: {:ok, %{profile: cdp_sampling_heap_profile_type()}} | {:error, term()}
This command has no documentation
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()}
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
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()}
take_heap_snapshot( GenServer.server(), %{optional(:report_progress) => boolean()}, Tungsten.Connection.exec_options() ) :: {:ok, map()} | {:error, term()}
This command has no documentation