/
events.go
40 lines (35 loc) · 1.91 KB
/
events.go
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
38
39
40
package profiler
// Code generated by cdproto-gen. DO NOT EDIT.
import (
"github.com/chromedp/cdproto/debugger"
)
// EventConsoleProfileFinished [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#event-consoleProfileFinished
type EventConsoleProfileFinished struct {
ID string `json:"id"`
Location *debugger.Location `json:"location"` // Location of console.profileEnd().
Profile *Profile `json:"profile"`
Title string `json:"title,omitempty"` // Profile title passed as an argument to console.profile().
}
// EventConsoleProfileStarted sent when new profile recording is started
// using console.profile() call.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#event-consoleProfileStarted
type EventConsoleProfileStarted struct {
ID string `json:"id"`
Location *debugger.Location `json:"location"` // Location of console.profile().
Title string `json:"title,omitempty"` // Profile title passed as an argument to console.profile().
}
// EventPreciseCoverageDeltaUpdate reports coverage delta since the last poll
// (either from an event like this, or from takePreciseCoverage for the current
// isolate. May only be sent if precise code coverage has been started. This
// event can be trigged by the embedder to, for example, trigger collection of
// coverage data immediately at a certain point in time.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#event-preciseCoverageDeltaUpdate
type EventPreciseCoverageDeltaUpdate struct {
Timestamp float64 `json:"timestamp"` // Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
Occasion string `json:"occasion"` // Identifier for distinguishing coverage events.
Result []*ScriptCoverage `json:"result"` // Coverage data for the current isolate.
}