2017-01-24 15:09:23 +00:00
|
|
|
package profiler
|
|
|
|
|
2017-07-09 02:05:19 +00:00
|
|
|
// Code generated by chromedp-gen. DO NOT EDIT.
|
2017-01-24 15:09:23 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
)
|
|
|
|
|
2017-05-06 01:20:24 +00:00
|
|
|
// EventConsoleProfileStarted sent when new profile recording is started
|
2017-01-24 15:09:23 +00:00
|
|
|
// using console.profile() call.
|
|
|
|
type EventConsoleProfileStarted struct {
|
2017-07-02 11:44:34 +00:00
|
|
|
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 {
|
2017-07-02 11:44:34 +00:00
|
|
|
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
|
|
|
}
|