1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
package tracing
// Code generated by cdproto-gen. DO NOT EDIT.
import (
"github.com/chromedp/cdproto/io"
"github.com/mailru/easyjson"
)
// EventBufferUsage [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#event-bufferUsage
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.
}
// EventDataCollected contains a bucket of collected trace events. When
// tracing is stopped collected events will be sent as a sequence of
// dataCollected events followed by tracingComplete event.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#event-dataCollected
type EventDataCollected struct {
Value []easyjson.RawMessage `json:"value"`
}
// 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
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.
}
|