chromedp/cdp/profiler/events.go
2017-12-18 07:23:14 +07:00

31 lines
1.1 KiB
Go

package profiler
// Code generated by chromedp-gen. DO NOT EDIT.
import (
cdp "github.com/knq/chromedp/cdp"
"github.com/knq/chromedp/cdp/debugger"
)
// 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().
}
// 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().
}
// EventTypes all event types in the domain.
var EventTypes = []cdp.MethodType{
cdp.EventProfilerConsoleProfileFinished,
cdp.EventProfilerConsoleProfileStarted,
}