clj-chrome-devtools.commands.tracing

end

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

Stop trace events collection.

get-categories

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

Gets supported tracing categories.

Return map keys:

Key Description
:categories A list of supported tracing categories.

record-clock-sync-marker

(record-clock-sync-marker)(record-clock-sync-marker {:as params, :keys [sync-id]})(record-clock-sync-marker connection {:as params, :keys [sync-id]})

Record a clock sync marker in the trace.

Parameters map keys:

Key Description
:sync-id The ID of this clock sync marker

request-memory-dump

(request-memory-dump)(request-memory-dump {:as params, :keys [deterministic level-of-detail]})(request-memory-dump connection {:as params, :keys [deterministic level-of-detail]})

Request a global memory dump.

Parameters map keys:

Key Description
:deterministic Enables more deterministic results by forcing garbage collection (optional)
:level-of-detail Specifies level of details in memory dump. Defaults to “detailed”. (optional)

Return map keys:

Key Description
:dump-guid GUID of the resulting global memory dump.
:success True iff the global memory dump succeeded.

start

(start)(start {:as params, :keys [categories options buffer-usage-reporting-interval transfer-mode stream-format stream-compression trace-config perfetto-config tracing-backend]})(start connection {:as params, :keys [categories options buffer-usage-reporting-interval transfer-mode stream-format stream-compression trace-config perfetto-config tracing-backend]})

Start trace events collection.

Parameters map keys:

Key Description
:categories Category/tag filter (optional)
:options Tracing options (optional)
:buffer-usage-reporting-interval If set, the agent will issue bufferUsage events at this interval, specified in milliseconds (optional)
:transfer-mode Whether to report trace events as series of dataCollected events or to save trace to a

stream (defaults to ReportEvents). (optional) :stream-format | Trace data format to use. This only applies when using ReturnAsStream transfer mode (defaults to json). (optional) :stream-compression | Compression format to use. This only applies when using ReturnAsStream transfer mode (defaults to none) (optional) :trace-config | null (optional) :perfetto-config | Base64-encoded serialized perfetto.protos.TraceConfig protobuf message When specified, the parameters categories, options, traceConfig are ignored. (Encoded as a base64 string when passed over JSON) (optional) :tracing-backend | Backend type (defaults to auto) (optional)