File: events.go

package info (click to toggle)
golang-github-chromedp-cdproto 0.0~git20230109.6b041c6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 4,584 kB
  • sloc: makefile: 2
file content (40 lines) | stat: -rw-r--r-- 1,959 bytes parent folder | download | duplicates (3)
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
31
32
33
34
35
36
37
38
39
40
package profiler

// Code generated by cdproto-gen. DO NOT EDIT.

import (
	"github.com/chromedp/cdproto/debugger"
)

// EventConsoleProfileFinished [no description].
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#event-consoleProfileFinished
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.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#event-consoleProfileStarted
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().
}

// EventPreciseCoverageDeltaUpdate reports coverage delta since the last poll
// (either from an event like this, or from takePreciseCoverage for the current
// isolate. May only be sent if precise code coverage has been started. This
// event can be trigged by the embedder to, for example, trigger collection of
// coverage data immediately at a certain point in time.
//
// See: https://chromedevtools.github.io/devtools-protocol/tot/Profiler#event-preciseCoverageDeltaUpdate
type EventPreciseCoverageDeltaUpdate struct {
	Timestamp float64           `json:"timestamp"` // Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
	Occasion  string            `json:"occasion"`  // Identifier for distinguishing coverage events.
	Result    []*ScriptCoverage `json:"result"`    // Coverage data for the current isolate.
}