/
command.go
76 lines (62 loc) · 3.17 KB
/
command.go
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// Code generated by cdpgen. DO NOT EDIT.
package memory
// GetDOMCountersReply represents the return values for GetDOMCounters in the Memory domain.
type GetDOMCountersReply struct {
Documents int `json:"documents"` // No description.
Nodes int `json:"nodes"` // No description.
JsEventListeners int `json:"jsEventListeners"` // No description.
}
// SetPressureNotificationsSuppressedArgs represents the arguments for SetPressureNotificationsSuppressed in the Memory domain.
type SetPressureNotificationsSuppressedArgs struct {
Suppressed bool `json:"suppressed"` // If true, memory pressure notifications will be suppressed.
}
// NewSetPressureNotificationsSuppressedArgs initializes SetPressureNotificationsSuppressedArgs with the required arguments.
func NewSetPressureNotificationsSuppressedArgs(suppressed bool) *SetPressureNotificationsSuppressedArgs {
args := new(SetPressureNotificationsSuppressedArgs)
args.Suppressed = suppressed
return args
}
// SimulatePressureNotificationArgs represents the arguments for SimulatePressureNotification in the Memory domain.
type SimulatePressureNotificationArgs struct {
Level PressureLevel `json:"level"` // Memory pressure level of the notification.
}
// NewSimulatePressureNotificationArgs initializes SimulatePressureNotificationArgs with the required arguments.
func NewSimulatePressureNotificationArgs(level PressureLevel) *SimulatePressureNotificationArgs {
args := new(SimulatePressureNotificationArgs)
args.Level = level
return args
}
// StartSamplingArgs represents the arguments for StartSampling in the Memory domain.
type StartSamplingArgs struct {
SamplingInterval *int `json:"samplingInterval,omitempty"` // Average number of bytes between samples.
SuppressRandomness *bool `json:"suppressRandomness,omitempty"` // Do not randomize intervals between samples.
}
// NewStartSamplingArgs initializes StartSamplingArgs with the required arguments.
func NewStartSamplingArgs() *StartSamplingArgs {
args := new(StartSamplingArgs)
return args
}
// SetSamplingInterval sets the SamplingInterval optional argument.
// Average number of bytes between samples.
func (a *StartSamplingArgs) SetSamplingInterval(samplingInterval int) *StartSamplingArgs {
a.SamplingInterval = &samplingInterval
return a
}
// SetSuppressRandomness sets the SuppressRandomness optional argument.
// Do not randomize intervals between samples.
func (a *StartSamplingArgs) SetSuppressRandomness(suppressRandomness bool) *StartSamplingArgs {
a.SuppressRandomness = &suppressRandomness
return a
}
// GetAllTimeSamplingProfileReply represents the return values for GetAllTimeSamplingProfile in the Memory domain.
type GetAllTimeSamplingProfileReply struct {
Profile SamplingProfile `json:"profile"` // No description.
}
// GetBrowserSamplingProfileReply represents the return values for GetBrowserSamplingProfile in the Memory domain.
type GetBrowserSamplingProfileReply struct {
Profile SamplingProfile `json:"profile"` // No description.
}
// GetSamplingProfileReply represents the return values for GetSamplingProfile in the Memory domain.
type GetSamplingProfileReply struct {
Profile SamplingProfile `json:"profile"` // No description.
}