2017-01-24 15:09:23 +00:00
package tracing
// AUTOGENERATED. DO NOT EDIT.
import (
2017-01-26 07:28:34 +00:00
cdp "github.com/knq/chromedp/cdp"
2017-01-24 15:09:23 +00:00
"github.com/knq/chromedp/cdp/io"
"github.com/mailru/easyjson"
)
// 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 {
2017-07-02 11:44:34 +00:00
Value [ ] easyjson . RawMessage ` json:"value" `
2017-01-24 15:09:23 +00:00
}
// 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.
}
2017-01-26 07:28:34 +00:00
// EventBufferUsage [no description].
2017-01-24 15:09:23 +00:00
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.
}
2017-01-26 07:28:34 +00:00
// EventTypes all event types in the domain.
var EventTypes = [ ] cdp . MethodType {
cdp . EventTracingDataCollected ,
cdp . EventTracingTracingComplete ,
cdp . EventTracingBufferUsage ,
2017-01-24 15:09:23 +00:00
}