func (c *Tracing) End(ctx context.Context) (*gcdmessage.ChromeResponse, error) {
	return c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "Tracing.end"})
}
Stop trace events collection.
package gcdapi
import (
	"context"
	"github.com/wirepair/gcd/v2/gcdmessage"
)
type TracingTraceConfig struct {
	RecordMode           string                 `json:"recordMode,omitempty"`            
	EnableSampling       bool                   `json:"enableSampling,omitempty"`        
	EnableSystrace       bool                   `json:"enableSystrace,omitempty"`        
	EnableArgumentFilter bool                   `json:"enableArgumentFilter,omitempty"`  
	IncludedCategories   []string               `json:"includedCategories,omitempty"`    
	ExcludedCategories   []string               `json:"excludedCategories,omitempty"`    
	SyntheticDelays      []string               `json:"syntheticDelays,omitempty"`       
	MemoryDumpConfig     map[string]interface{} `json:"memoryDumpConfig,omitempty"`      
}
type TracingBufferUsageEvent struct {
	Method string `json:"method"`
	Params struct {
		PercentFull float64 `json:"percentFull,omitempty"`  
		EventCount  float64 `json:"eventCount,omitempty"`   
		Value       float64 `json:"value,omitempty"`        
	} `json:"Params,omitempty"`
}
type TracingTracingCompleteEvent struct {
	Method string `json:"method"`
	Params struct {
		DataLossOccurred  bool   `json:"dataLossOccurred"`             
		Stream            string `json:"stream,omitempty"`             
		TraceFormat       string `json:"traceFormat,omitempty"`        
		StreamCompression string `json:"streamCompression,omitempty"`  
	} `json:"Params,omitempty"`
}
type Tracing struct {
	target gcdmessage.ChromeTargeter
}
func NewTracing(target gcdmessage.ChromeTargeter) *Tracing {
	c := &Tracing{target: target}
	return c
}