TracingClientStartAsync Method |
Version 130.1.90
Start trace events collection.
Namespace: CefSharp.DevTools.TracingAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<DevToolsMethodResponse> StartAsync(
string categories = null,
string options = null,
double? bufferUsageReportingInterval = null,
StartTransferMode? transferMode = null,
StreamFormat? streamFormat = null,
StreamCompression? streamCompression = null,
TraceConfig traceConfig = null,
byte[] perfettoConfig = null,
TracingBackend? tracingBackend = null
)
public:
Task<DevToolsMethodResponse^>^ StartAsync(
String^ categories = nullptr,
String^ options = nullptr,
Nullable<double> bufferUsageReportingInterval = nullptr,
Nullable<StartTransferMode> transferMode = nullptr,
Nullable<StreamFormat> streamFormat = nullptr,
Nullable<StreamCompression> streamCompression = nullptr,
TraceConfig^ traceConfig = nullptr,
array<unsigned char>^ perfettoConfig = nullptr,
Nullable<TracingBackend> tracingBackend = nullptr
)
Parameters
- categories String (Optional)
- Category/tag filter
- options String (Optional)
- Tracing options
- bufferUsageReportingInterval NullableDouble (Optional)
- If set, the agent will issue bufferUsage events at this interval, specified in milliseconds
- transferMode NullableStartTransferMode (Optional)
- Whether to report trace events as series of dataCollected events or to save trace to astream (defaults to `ReportEvents`).
- streamFormat NullableStreamFormat (Optional)
- Trace data format to use. This only applies when using `ReturnAsStream`transfer mode (defaults to `json`).
- streamCompression NullableStreamCompression (Optional)
- Compression format to use. This only applies when using `ReturnAsStream`transfer mode (defaults to `none`)
- traceConfig TraceConfig (Optional)
- traceConfig
- perfettoConfig Byte (Optional)
- Base64-encoded serialized perfetto.protos.TraceConfig protobuf messageWhen specified, the parameters `categories`, `options`, `traceConfig`are ignored.
- tracingBackend NullableTracingBackend (Optional)
- Backend type (defaults to `auto`)
Return Value
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also