events.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package tracing
  2. // Code generated by cdproto-gen. DO NOT EDIT.
  3. import (
  4. "github.com/chromedp/cdproto/io"
  5. "github.com/mailru/easyjson"
  6. )
  7. // EventBufferUsage [no description].
  8. //
  9. // See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#event-bufferUsage
  10. type EventBufferUsage struct {
  11. 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.
  12. EventCount float64 `json:"eventCount,omitempty"` // An approximate number of events in the trace log.
  13. 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.
  14. }
  15. // EventDataCollected contains a bucket of collected trace events. When
  16. // tracing is stopped collected events will be sent as a sequence of
  17. // dataCollected events followed by tracingComplete event.
  18. //
  19. // See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#event-dataCollected
  20. type EventDataCollected struct {
  21. Value []easyjson.RawMessage `json:"value"`
  22. }
  23. // EventTracingComplete signals that tracing is stopped and there is no trace
  24. // buffers pending flush, all data were delivered via dataCollected events.
  25. //
  26. // See: https://chromedevtools.github.io/devtools-protocol/tot/Tracing#event-tracingComplete
  27. type EventTracingComplete struct {
  28. DataLossOccurred bool `json:"dataLossOccurred"` // Indicates whether some trace data is known to have been lost, e.g. because the trace ring buffer wrapped around.
  29. Stream io.StreamHandle `json:"stream,omitempty"` // A handle of the stream that holds resulting trace data.
  30. TraceFormat StreamFormat `json:"traceFormat,omitempty"` // Trace data format of returned stream.
  31. StreamCompression StreamCompression `json:"streamCompression,omitempty"` // Compression format of returned stream.
  32. }