chromedp/cdp/profiler/events.go

31 lines
1.1 KiB
Go
Raw Normal View History

2017-01-24 15:09:23 +00:00
package profiler
// 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/debugger"
)
// EventConsoleProfileStarted sent when new profile recording is started
2017-01-24 15:09:23 +00:00
// 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().
2017-01-24 15:09:23 +00:00
}
2017-01-26 07:28:34 +00:00
// EventConsoleProfileFinished [no description].
2017-01-24 15:09:23 +00:00
type EventConsoleProfileFinished struct {
ID string `json:"id"`
Location *debugger.Location `json:"location"` // Location of console.profileEnd().
Profile *Profile `json:"profile"`
2017-01-24 15:09:23 +00:00
Title string `json:"title,omitempty"` // Profile title passed as an argument to console.profile().
}
2017-01-26 07:28:34 +00:00
// EventTypes all event types in the domain.
var EventTypes = []cdp.MethodType{
cdp.EventProfilerConsoleProfileStarted,
cdp.EventProfilerConsoleProfileFinished,
2017-01-24 15:09:23 +00:00
}