/// <summary> /// Start trace events collection. /// </summary> /// <param name = "categories">Category/tag filter</param> /// <param name = "options">Tracing options</param> /// <param name = "bufferUsageReportingInterval">If set, the agent will issue bufferUsage events at this interval, specified in milliseconds</param> /// <param name = "transferMode">Whether to report trace events as series of dataCollected events or to save trace to a public async System.Threading.Tasks.Task <DevToolsMethodResponse> StartAsync(string categories = null, string options = null, long?bufferUsageReportingInterval = null, string transferMode = null, CefSharp.DevTools.Tracing.StreamFormat?streamFormat = null, CefSharp.DevTools.Tracing.StreamCompression?streamCompression = null, CefSharp.DevTools.Tracing.TraceConfig traceConfig = null) { ValidateStart(categories, options, bufferUsageReportingInterval, transferMode, streamFormat, streamCompression, traceConfig); var dict = new System.Collections.Generic.Dictionary <string, object>(); if (!(string.IsNullOrEmpty(categories))) { dict.Add("categories", categories); } if (!(string.IsNullOrEmpty(options))) { dict.Add("options", options); } if (bufferUsageReportingInterval.HasValue) { dict.Add("bufferUsageReportingInterval", bufferUsageReportingInterval.Value); } if (!(string.IsNullOrEmpty(transferMode))) { dict.Add("transferMode", transferMode); } if (streamFormat.HasValue) { dict.Add("streamFormat", this.EnumToString(streamFormat)); } if (streamCompression.HasValue) { dict.Add("streamCompression", this.EnumToString(streamCompression)); } if ((traceConfig) != (null)) { dict.Add("traceConfig", traceConfig.ToDictionary()); } var methodResult = await _client.ExecuteDevToolsMethodAsync("Tracing.start", dict); return(methodResult); }
partial void ValidateStart(string categories = null, string options = null, long?bufferUsageReportingInterval = null, string transferMode = null, CefSharp.DevTools.Tracing.StreamFormat?streamFormat = null, CefSharp.DevTools.Tracing.StreamCompression?streamCompression = null, CefSharp.DevTools.Tracing.TraceConfig traceConfig = null);