clj-chrome-devtools.commands.profiler

disable

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

enable

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

get-best-effort-coverage

(get-best-effort-coverage)(get-best-effort-coverage {:as params, :keys []})(get-best-effort-coverage connection {:as params, :keys []})

Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.

Return map keys:

Key Description
:result Coverage data for the current isolate.

set-sampling-interval

(set-sampling-interval)(set-sampling-interval {:as params, :keys [interval]})(set-sampling-interval connection {:as params, :keys [interval]})

Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.

Parameters map keys:

Key Description
:interval New sampling interval in microseconds.

start

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

start-precise-coverage

(start-precise-coverage)(start-precise-coverage {:as params, :keys [call-count detailed allow-triggered-updates]})(start-precise-coverage connection {:as params, :keys [call-count detailed allow-triggered-updates]})

Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters.

Parameters map keys:

Key Description
:call-count Collect accurate call counts beyond simple ‘covered’ or ‘not covered’. (optional)
:detailed Collect block-based coverage. (optional)
:allow-triggered-updates Allow the backend to send updates on its own initiative (optional)

Return map keys:

Key Description
:timestamp Monotonically increasing time (in seconds) when the coverage update was taken in the backend.

start-type-profile

(start-type-profile)(start-type-profile {:as params, :keys []})(start-type-profile connection {:as params, :keys []})

Enable type profile.

stop

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

Return map keys:

Key Description
:profile Recorded profile.

stop-precise-coverage

(stop-precise-coverage)(stop-precise-coverage {:as params, :keys []})(stop-precise-coverage connection {:as params, :keys []})

Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.

stop-type-profile

(stop-type-profile)(stop-type-profile {:as params, :keys []})(stop-type-profile connection {:as params, :keys []})

Disable type profile. Disabling releases type profile data collected so far.

take-precise-coverage

(take-precise-coverage)(take-precise-coverage {:as params, :keys []})(take-precise-coverage connection {:as params, :keys []})

Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.

Return map keys:

Key Description
:result Coverage data for the current isolate.
:timestamp Monotonically increasing time (in seconds) when the coverage update was taken in the backend.

take-type-profile

(take-type-profile)(take-type-profile {:as params, :keys []})(take-type-profile connection {:as params, :keys []})

Collect type profile.

Return map keys:

Key Description
:result Type profile for all scripts since startTypeProfile() was turned on.