chromedp/cdp/profiler/events.go
2017-01-24 22:09:23 +07:00

50 lines
1.3 KiB
Go

package profiler
// AUTOGENERATED. DO NOT EDIT.
import (
. "github.com/knq/chromedp/cdp"
"github.com/knq/chromedp/cdp/debugger"
)
var (
_ BackendNode
_ BackendNodeID
_ ComputedProperty
_ ErrorType
_ Frame
_ FrameID
_ LoaderID
_ Message
_ MessageError
_ MethodType
_ Node
_ NodeID
_ NodeType
_ PseudoType
_ RGBA
_ ShadowRootType
_ Timestamp
)
// EventConsoleProfileStarted sent when new profile recodring is started
// using console.profile() call.
type EventConsoleProfileStarted struct {
ID string `json:"id,omitempty"`
Location *debugger.Location `json:"location,omitempty"` // Location of console.profile().
Title string `json:"title,omitempty"` // Profile title passed as an argument to console.profile().
}
type EventConsoleProfileFinished struct {
ID string `json:"id,omitempty"`
Location *debugger.Location `json:"location,omitempty"` // Location of console.profileEnd().
Profile *Profile `json:"profile,omitempty"`
Title string `json:"title,omitempty"` // Profile title passed as an argument to console.profile().
}
// EventTypes is all event types in the domain.
var EventTypes = []MethodType{
EventProfilerConsoleProfileStarted,
EventProfilerConsoleProfileFinished,
}