cdproto: github.com/chromedp/cdproto/tracing Index | Files

package tracing

import "github.com/chromedp/cdproto/tracing"

Package tracing provides the Chrome DevTools Protocol commands, types, and events for the Tracing domain.

Generated by the cdproto-gen command.

Index

Package Files

easyjson.go events.go tracing.go types.go

Constants

const (
    CommandEnd                   = "Tracing.end"
    CommandGetCategories         = "Tracing.getCategories"
    CommandRecordClockSyncMarker = "Tracing.recordClockSyncMarker"
    CommandRequestMemoryDump     = "Tracing.requestMemoryDump"
    CommandStart                 = "Tracing.start"
)

Command names.

type EndParams Uses

type EndParams struct{}

EndParams stop trace events collection.

func End Uses

func End() *EndParams

End stop trace events collection.

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#method-end

func (*EndParams) Do Uses

func (p *EndParams) Do(ctx context.Context) (err error)

Do executes Tracing.end against the provided context.

func (EndParams) MarshalEasyJSON Uses

func (v EndParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EndParams) MarshalJSON Uses

func (v EndParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EndParams) UnmarshalEasyJSON Uses

func (v *EndParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EndParams) UnmarshalJSON Uses

func (v *EndParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventBufferUsage Uses

type EventBufferUsage struct {
    PercentFull float64 `json:"percentFull,omitempty"` // A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size.
    EventCount  float64 `json:"eventCount,omitempty"`  // An approximate number of events in the trace log.
    Value       float64 `json:"value,omitempty"`       // A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size.
}

EventBufferUsage [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#event-bufferUsage

func (EventBufferUsage) MarshalEasyJSON Uses

func (v EventBufferUsage) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventBufferUsage) MarshalJSON Uses

func (v EventBufferUsage) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventBufferUsage) UnmarshalEasyJSON Uses

func (v *EventBufferUsage) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventBufferUsage) UnmarshalJSON Uses

func (v *EventBufferUsage) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventDataCollected Uses

type EventDataCollected struct {
    Value []easyjson.RawMessage `json:"value"`
}

EventDataCollected contains an bucket of collected trace events. When tracing is stopped collected events will be send as a sequence of dataCollected events followed by tracingComplete event.

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#event-dataCollected

func (EventDataCollected) MarshalEasyJSON Uses

func (v EventDataCollected) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventDataCollected) MarshalJSON Uses

func (v EventDataCollected) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventDataCollected) UnmarshalEasyJSON Uses

func (v *EventDataCollected) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventDataCollected) UnmarshalJSON Uses

func (v *EventDataCollected) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventTracingComplete Uses

type EventTracingComplete struct {
    DataLossOccurred  bool              `json:"dataLossOccurred"`            // Indicates whether some trace data is known to have been lost, e.g. because the trace ring buffer wrapped around.
    Stream            io.StreamHandle   `json:"stream,omitempty"`            // A handle of the stream that holds resulting trace data.
    TraceFormat       StreamFormat      `json:"traceFormat,omitempty"`       // Trace data format of returned stream.
    StreamCompression StreamCompression `json:"streamCompression,omitempty"` // Compression format of returned stream.
}

EventTracingComplete signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#event-tracingComplete

func (EventTracingComplete) MarshalEasyJSON Uses

func (v EventTracingComplete) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventTracingComplete) MarshalJSON Uses

func (v EventTracingComplete) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventTracingComplete) UnmarshalEasyJSON Uses

func (v *EventTracingComplete) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventTracingComplete) UnmarshalJSON Uses

func (v *EventTracingComplete) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetCategoriesParams Uses

type GetCategoriesParams struct{}

GetCategoriesParams gets supported tracing categories.

func GetCategories Uses

func GetCategories() *GetCategoriesParams

GetCategories gets supported tracing categories.

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#method-getCategories

func (*GetCategoriesParams) Do Uses

func (p *GetCategoriesParams) Do(ctx context.Context) (categories []string, err error)

Do executes Tracing.getCategories against the provided context.

returns:

categories - A list of supported tracing categories.

func (GetCategoriesParams) MarshalEasyJSON Uses

func (v GetCategoriesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCategoriesParams) MarshalJSON Uses

func (v GetCategoriesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetCategoriesParams) UnmarshalEasyJSON Uses

func (v *GetCategoriesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCategoriesParams) UnmarshalJSON Uses

func (v *GetCategoriesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetCategoriesReturns Uses

type GetCategoriesReturns struct {
    Categories []string `json:"categories,omitempty"` // A list of supported tracing categories.
}

GetCategoriesReturns return values.

func (GetCategoriesReturns) MarshalEasyJSON Uses

func (v GetCategoriesReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetCategoriesReturns) MarshalJSON Uses

func (v GetCategoriesReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetCategoriesReturns) UnmarshalEasyJSON Uses

func (v *GetCategoriesReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetCategoriesReturns) UnmarshalJSON Uses

func (v *GetCategoriesReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MemoryDumpConfig Uses

type MemoryDumpConfig struct{}

MemoryDumpConfig configuration for memory dump. Used only when "memory-infra" category is enabled.

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#type-MemoryDumpConfig

func (MemoryDumpConfig) MarshalEasyJSON Uses

func (v MemoryDumpConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MemoryDumpConfig) MarshalJSON Uses

func (v MemoryDumpConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MemoryDumpConfig) UnmarshalEasyJSON Uses

func (v *MemoryDumpConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MemoryDumpConfig) UnmarshalJSON Uses

func (v *MemoryDumpConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MemoryDumpLevelOfDetail Uses

type MemoryDumpLevelOfDetail string

MemoryDumpLevelOfDetail details exposed when memory request explicitly declared. Keep consistent with memory_dump_request_args.h and memory_instrumentation.mojom.

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#type-MemoryDumpLevelOfDetail

const (
    MemoryDumpLevelOfDetailBackground MemoryDumpLevelOfDetail = "background"
    MemoryDumpLevelOfDetailLight      MemoryDumpLevelOfDetail = "light"
    MemoryDumpLevelOfDetailDetailed   MemoryDumpLevelOfDetail = "detailed"
)

MemoryDumpLevelOfDetail values.

func (MemoryDumpLevelOfDetail) MarshalEasyJSON Uses

func (t MemoryDumpLevelOfDetail) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (MemoryDumpLevelOfDetail) MarshalJSON Uses

func (t MemoryDumpLevelOfDetail) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (MemoryDumpLevelOfDetail) String Uses

func (t MemoryDumpLevelOfDetail) String() string

String returns the MemoryDumpLevelOfDetail as string value.

func (*MemoryDumpLevelOfDetail) UnmarshalEasyJSON Uses

func (t *MemoryDumpLevelOfDetail) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*MemoryDumpLevelOfDetail) UnmarshalJSON Uses

func (t *MemoryDumpLevelOfDetail) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type RecordClockSyncMarkerParams Uses

type RecordClockSyncMarkerParams struct {
    SyncID string `json:"syncId"` // The ID of this clock sync marker
}

RecordClockSyncMarkerParams record a clock sync marker in the trace.

func RecordClockSyncMarker Uses

func RecordClockSyncMarker(syncID string) *RecordClockSyncMarkerParams

RecordClockSyncMarker record a clock sync marker in the trace.

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#method-recordClockSyncMarker

parameters:

syncID - The ID of this clock sync marker

func (*RecordClockSyncMarkerParams) Do Uses

func (p *RecordClockSyncMarkerParams) Do(ctx context.Context) (err error)

Do executes Tracing.recordClockSyncMarker against the provided context.

func (RecordClockSyncMarkerParams) MarshalEasyJSON Uses

func (v RecordClockSyncMarkerParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RecordClockSyncMarkerParams) MarshalJSON Uses

func (v RecordClockSyncMarkerParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RecordClockSyncMarkerParams) UnmarshalEasyJSON Uses

func (v *RecordClockSyncMarkerParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RecordClockSyncMarkerParams) UnmarshalJSON Uses

func (v *RecordClockSyncMarkerParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RecordMode Uses

type RecordMode string

RecordMode controls how the trace buffer stores data.

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#type-TraceConfig

const (
    RecordModeRecordUntilFull        RecordMode = "recordUntilFull"
    RecordModeRecordContinuously     RecordMode = "recordContinuously"
    RecordModeRecordAsMuchAsPossible RecordMode = "recordAsMuchAsPossible"
    RecordModeEchoToConsole          RecordMode = "echoToConsole"
)

RecordMode values.

func (RecordMode) MarshalEasyJSON Uses

func (t RecordMode) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (RecordMode) MarshalJSON Uses

func (t RecordMode) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (RecordMode) String Uses

func (t RecordMode) String() string

String returns the RecordMode as string value.

func (*RecordMode) UnmarshalEasyJSON Uses

func (t *RecordMode) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*RecordMode) UnmarshalJSON Uses

func (t *RecordMode) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type RequestMemoryDumpParams Uses

type RequestMemoryDumpParams struct {
    Deterministic bool                    `json:"deterministic,omitempty"` // Enables more deterministic results by forcing garbage collection
    LevelOfDetail MemoryDumpLevelOfDetail `json:"levelOfDetail,omitempty"` // Specifies level of details in memory dump. Defaults to "detailed".
}

RequestMemoryDumpParams request a global memory dump.

func RequestMemoryDump Uses

func RequestMemoryDump() *RequestMemoryDumpParams

RequestMemoryDump request a global memory dump.

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#method-requestMemoryDump

parameters:

func (*RequestMemoryDumpParams) Do Uses

func (p *RequestMemoryDumpParams) Do(ctx context.Context) (dumpGUID string, success bool, err error)

Do executes Tracing.requestMemoryDump against the provided context.

returns:

dumpGUID - GUID of the resulting global memory dump.
success - True iff the global memory dump succeeded.

func (RequestMemoryDumpParams) MarshalEasyJSON Uses

func (v RequestMemoryDumpParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RequestMemoryDumpParams) MarshalJSON Uses

func (v RequestMemoryDumpParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RequestMemoryDumpParams) UnmarshalEasyJSON Uses

func (v *RequestMemoryDumpParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RequestMemoryDumpParams) UnmarshalJSON Uses

func (v *RequestMemoryDumpParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (RequestMemoryDumpParams) WithDeterministic Uses

func (p RequestMemoryDumpParams) WithDeterministic(deterministic bool) *RequestMemoryDumpParams

WithDeterministic enables more deterministic results by forcing garbage collection.

func (RequestMemoryDumpParams) WithLevelOfDetail Uses

func (p RequestMemoryDumpParams) WithLevelOfDetail(levelOfDetail MemoryDumpLevelOfDetail) *RequestMemoryDumpParams

WithLevelOfDetail specifies level of details in memory dump. Defaults to "detailed".

type RequestMemoryDumpReturns Uses

type RequestMemoryDumpReturns struct {
    DumpGUID string `json:"dumpGuid,omitempty"` // GUID of the resulting global memory dump.
    Success  bool   `json:"success,omitempty"`  // True iff the global memory dump succeeded.
}

RequestMemoryDumpReturns return values.

func (RequestMemoryDumpReturns) MarshalEasyJSON Uses

func (v RequestMemoryDumpReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RequestMemoryDumpReturns) MarshalJSON Uses

func (v RequestMemoryDumpReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RequestMemoryDumpReturns) UnmarshalEasyJSON Uses

func (v *RequestMemoryDumpReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RequestMemoryDumpReturns) UnmarshalJSON Uses

func (v *RequestMemoryDumpReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StartParams Uses

type StartParams struct {
    BufferUsageReportingInterval float64           `json:"bufferUsageReportingInterval,omitempty"` // If set, the agent will issue bufferUsage events at this interval, specified in milliseconds
    TransferMode                 TransferMode      `json:"transferMode,omitempty"`                 // Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to ReportEvents).
    StreamFormat                 StreamFormat      `json:"streamFormat,omitempty"`                 // Trace data format to use. This only applies when using ReturnAsStream transfer mode (defaults to json).
    StreamCompression            StreamCompression `json:"streamCompression,omitempty"`            // Compression format to use. This only applies when using ReturnAsStream transfer mode (defaults to none)
    TraceConfig                  *TraceConfig      `json:"traceConfig,omitempty"`
    PerfettoConfig               string            `json:"perfettoConfig,omitempty"` // Base64-encoded serialized perfetto.protos.TraceConfig protobuf message When specified, the parameters categories, options, traceConfig are ignored.
}

StartParams start trace events collection.

func Start Uses

func Start() *StartParams

Start start trace events collection.

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#method-start

parameters:

func (*StartParams) Do Uses

func (p *StartParams) Do(ctx context.Context) (err error)

Do executes Tracing.start against the provided context.

func (StartParams) MarshalEasyJSON Uses

func (v StartParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StartParams) MarshalJSON Uses

func (v StartParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StartParams) UnmarshalEasyJSON Uses

func (v *StartParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StartParams) UnmarshalJSON Uses

func (v *StartParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (StartParams) WithBufferUsageReportingInterval Uses

func (p StartParams) WithBufferUsageReportingInterval(bufferUsageReportingInterval float64) *StartParams

WithBufferUsageReportingInterval if set, the agent will issue bufferUsage events at this interval, specified in milliseconds.

func (StartParams) WithPerfettoConfig Uses

func (p StartParams) WithPerfettoConfig(perfettoConfig string) *StartParams

WithPerfettoConfig base64-encoded serialized perfetto.protos.TraceConfig protobuf message When specified, the parameters categories, options, traceConfig are ignored.

func (StartParams) WithStreamCompression Uses

func (p StartParams) WithStreamCompression(streamCompression StreamCompression) *StartParams

WithStreamCompression compression format to use. This only applies when using ReturnAsStream transfer mode (defaults to none).

func (StartParams) WithStreamFormat Uses

func (p StartParams) WithStreamFormat(streamFormat StreamFormat) *StartParams

WithStreamFormat trace data format to use. This only applies when using ReturnAsStream transfer mode (defaults to json).

func (StartParams) WithTraceConfig Uses

func (p StartParams) WithTraceConfig(traceConfig *TraceConfig) *StartParams

WithTraceConfig [no description].

func (StartParams) WithTransferMode Uses

func (p StartParams) WithTransferMode(transferMode TransferMode) *StartParams

WithTransferMode whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to ReportEvents).

type StreamCompression Uses

type StreamCompression string

StreamCompression compression type to use for traces returned via streams.

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#type-StreamCompression

const (
    StreamCompressionNone StreamCompression = "none"
    StreamCompressionGzip StreamCompression = "gzip"
)

StreamCompression values.

func (StreamCompression) MarshalEasyJSON Uses

func (t StreamCompression) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (StreamCompression) MarshalJSON Uses

func (t StreamCompression) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (StreamCompression) String Uses

func (t StreamCompression) String() string

String returns the StreamCompression as string value.

func (*StreamCompression) UnmarshalEasyJSON Uses

func (t *StreamCompression) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*StreamCompression) UnmarshalJSON Uses

func (t *StreamCompression) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type StreamFormat Uses

type StreamFormat string

StreamFormat data format of a trace. Can be either the legacy JSON format or the protocol buffer format. Note that the JSON format will be deprecated soon.

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#type-StreamFormat

const (
    StreamFormatJSON  StreamFormat = "json"
    StreamFormatProto StreamFormat = "proto"
)

StreamFormat values.

func (StreamFormat) MarshalEasyJSON Uses

func (t StreamFormat) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (StreamFormat) MarshalJSON Uses

func (t StreamFormat) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (StreamFormat) String Uses

func (t StreamFormat) String() string

String returns the StreamFormat as string value.

func (*StreamFormat) UnmarshalEasyJSON Uses

func (t *StreamFormat) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*StreamFormat) UnmarshalJSON Uses

func (t *StreamFormat) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type TraceConfig Uses

type TraceConfig struct {
    RecordMode           RecordMode        `json:"recordMode,omitempty"`           // Controls how the trace buffer stores data.
    EnableSampling       bool              `json:"enableSampling,omitempty"`       // Turns on JavaScript stack sampling.
    EnableSystrace       bool              `json:"enableSystrace,omitempty"`       // Turns on system tracing.
    EnableArgumentFilter bool              `json:"enableArgumentFilter,omitempty"` // Turns on argument filter.
    IncludedCategories   []string          `json:"includedCategories,omitempty"`   // Included category filters.
    ExcludedCategories   []string          `json:"excludedCategories,omitempty"`   // Excluded category filters.
    SyntheticDelays      []string          `json:"syntheticDelays,omitempty"`      // Configuration to synthesize the delays in tracing.
    MemoryDumpConfig     *MemoryDumpConfig `json:"memoryDumpConfig,omitempty"`     // Configuration for memory dump triggers. Used only when "memory-infra" category is enabled.
}

TraceConfig [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#type-TraceConfig

func (TraceConfig) MarshalEasyJSON Uses

func (v TraceConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (TraceConfig) MarshalJSON Uses

func (v TraceConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*TraceConfig) UnmarshalEasyJSON Uses

func (v *TraceConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*TraceConfig) UnmarshalJSON Uses

func (v *TraceConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type TransferMode Uses

type TransferMode string

TransferMode whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to ReportEvents).

See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#method-start

const (
    TransferModeReportEvents   TransferMode = "ReportEvents"
    TransferModeReturnAsStream TransferMode = "ReturnAsStream"
)

TransferMode values.

func (TransferMode) MarshalEasyJSON Uses

func (t TransferMode) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (TransferMode) MarshalJSON Uses

func (t TransferMode) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (TransferMode) String Uses

func (t TransferMode) String() string

String returns the TransferMode as string value.

func (*TransferMode) UnmarshalEasyJSON Uses

func (t *TransferMode) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*TransferMode) UnmarshalJSON Uses

func (t *TransferMode) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

Package tracing imports 8 packages (graph) and is imported by 3 packages. Updated 2021-01-07. Refresh now. Tools for package owners.