Tungsten v0.1.0 Tungsten.CDP.Performance View Source

Performance

This domain has no documentation

Link to this section Summary

Link to this section Types

Link to this type

cdp_metric_type() View Source
cdp_metric_type() :: %{name: String.t(), value: integer() | float()}

Performance.Metric

Run-time execution metric.

Link to this section Functions

Link to this function

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

Performance.disable

Disable collecting and reporting metrics.

Link to this function

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

Performance.enable

Enable collecting and reporting metrics.

Link to this function

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

Performance.getMetrics

Retrieve current values of run-time metrics.

Link to this function

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

Performance.setTimeDomain

Sets time domain to use for collecting and reporting duration metrics. Note that this must be called before enabling metrics collection. Calling this method while metrics collection is enabled returns an error.