chromedp/cdp/tracing/events.go
2017-01-24 22:09:23 +07:00

56 lines
1.6 KiB
Go

package tracing
// AUTOGENERATED. DO NOT EDIT.
import (
. "github.com/knq/chromedp/cdp"
"github.com/knq/chromedp/cdp/io"
"github.com/mailru/easyjson"
)
var (
_ BackendNode
_ BackendNodeID
_ ComputedProperty
_ ErrorType
_ Frame
_ FrameID
_ LoaderID
_ Message
_ MessageError
_ MethodType
_ Node
_ NodeID
_ NodeType
_ PseudoType
_ RGBA
_ ShadowRootType
_ Timestamp
)
// 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.
type EventDataCollected struct {
Value []easyjson.RawMessage `json:"value,omitempty"`
}
// EventTracingComplete signals that tracing is stopped and there is no trace
// buffers pending flush, all data were delivered via dataCollected events.
type EventTracingComplete struct {
Stream io.StreamHandle `json:"stream,omitempty"` // A handle of the stream that holds resulting trace data.
}
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.
}
// EventTypes is all event types in the domain.
var EventTypes = []MethodType{
EventTracingDataCollected,
EventTracingTracingComplete,
EventTracingBufferUsage,
}