forked from chromedp/chromedp
/
events.go
30 lines (25 loc) · 1.07 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
package profiler
// Code generated by chromedp-gen. DO NOT EDIT.
import (
cdp "github.com/knq/chromedp/cdp"
"github.com/knq/chromedp/cdp/debugger"
)
// EventConsoleProfileStarted sent when new profile recording is started
// using console.profile() call.
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().
}
// EventConsoleProfileFinished [no description].
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().
}
// EventTypes all event types in the domain.
var EventTypes = []cdp.MethodType{
cdp.EventProfilerConsoleProfileStarted,
cdp.EventProfilerConsoleProfileFinished,
}