pub struct StartParams {
pub categories: Option<String>,
pub options: Option<String>,
pub buffer_usage_reporting_interval: Option<f64>,
pub transfer_mode: Option<StartTransferMode>,
pub stream_format: Option<StreamFormat>,
pub stream_compression: Option<StreamCompression>,
pub trace_config: Option<TraceConfig>,
pub perfetto_config: Option<String>,
pub tracing_backend: Option<TracingBackend>,
pub screenshot_max_size: Option<i64>,
pub screenshot_max_count: Option<i64>,
}Expand description
Start trace events collection.
Parameters of Tracing.start.
Fields§
§categories: Option<String>Category/tag filter
Deprecated in the protocol.
Experimental: may change without notice.
options: Option<String>Tracing options
Deprecated in the protocol.
Experimental: may change without notice.
buffer_usage_reporting_interval: Option<f64>If set, the agent will issue bufferUsage events at this interval, specified in milliseconds
Experimental: may change without notice.
transfer_mode: Option<StartTransferMode>Whether to report trace events as series of dataCollected events or to
save trace to a stream (defaults to ReportEvents).
stream_format: Option<StreamFormat>Trace data format to use. This only applies when using ReturnAsStream
transfer mode (defaults to json).
stream_compression: Option<StreamCompression>Compression format to use. This only applies when using ReturnAsStream
transfer mode (defaults to none)
Experimental: may change without notice.
trace_config: Option<TraceConfig>§perfetto_config: Option<String>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)
Experimental: may change without notice.
tracing_backend: Option<TracingBackend>Backend type (defaults to auto)
Experimental: may change without notice.
screenshot_max_size: Option<i64>Maximum width and height (in pixels) of each captured screenshot. Only
used when the disabled-by-default-devtools.screenshot category is
enabled. Defaults to 500. The combined memory footprint of screenshots
(screenshotMaxSize * screenshotMaxSize * 4 * screenshotMaxCount) is
clamped to the existing per-session budget.
Experimental: may change without notice.
screenshot_max_count: Option<i64>Maximum number of screenshots captured during a single tracing session.
Only used when the disabled-by-default-devtools.screenshot category is
enabled. Defaults to 450. Clamped together with screenshotMaxSize to
stay within the per-session screenshot memory budget.
Experimental: may change without notice.