clj-chrome-devtools.commands.performance

disable

(disable)(disable {:as params, :keys []})(disable connection {:as params, :keys []})

Disable collecting and reporting metrics.

enable

(enable)(enable {:as params, :keys [time-domain]})(enable connection {:as params, :keys [time-domain]})

Enable collecting and reporting metrics.

Parameters map keys:

Key Description
:time-domain Time domain to use for collecting and reporting duration metrics. (optional)

get-metrics

(get-metrics)(get-metrics {:as params, :keys []})(get-metrics connection {:as params, :keys []})

Retrieve current values of run-time metrics.

Return map keys:

Key Description
:metrics Current values for run-time metrics.

set-time-domain

(set-time-domain)(set-time-domain {:as params, :keys [time-domain]})(set-time-domain connection {:as params, :keys [time-domain]})

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.

Parameters map keys:

Key Description
:time-domain Time domain