devtools-protocol 0.0.1498597 → 0.0.1501779

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/json/browser_protocol.json +17960 -17689
  2. package/json/js_protocol.json +6 -0
  3. package/package.json +1 -1
  4. package/pdl/browser_protocol.pdl +47 -13824
  5. package/pdl/domains/Accessibility.pdl +290 -0
  6. package/pdl/domains/Animation.pdl +195 -0
  7. package/pdl/domains/Audits.pdl +755 -0
  8. package/pdl/domains/Autofill.pdl +106 -0
  9. package/pdl/domains/BackgroundService.pdl +77 -0
  10. package/pdl/domains/BluetoothEmulation.pdl +227 -0
  11. package/pdl/domains/Browser.pdl +345 -0
  12. package/pdl/domains/CSS.pdl +996 -0
  13. package/pdl/domains/CacheStorage.pdl +125 -0
  14. package/pdl/domains/Cast.pdl +62 -0
  15. package/pdl/domains/DOM.pdl +932 -0
  16. package/pdl/domains/DOMDebugger.pdl +128 -0
  17. package/pdl/domains/DOMSnapshot.pdl +319 -0
  18. package/pdl/domains/DOMStorage.pdl +72 -0
  19. package/pdl/domains/DeviceAccess.pdl +43 -0
  20. package/pdl/domains/DeviceOrientation.pdl +20 -0
  21. package/pdl/domains/Emulation.pdl +608 -0
  22. package/pdl/domains/EventBreakpoints.pdl +24 -0
  23. package/pdl/domains/Extensions.pdl +72 -0
  24. package/pdl/domains/FedCm.pdl +100 -0
  25. package/pdl/domains/Fetch.pdl +251 -0
  26. package/pdl/domains/FileSystem.pdl +41 -0
  27. package/pdl/domains/HeadlessExperimental.pdl +56 -0
  28. package/pdl/domains/IO.pdl +45 -0
  29. package/pdl/domains/IndexedDB.pdl +226 -0
  30. package/pdl/domains/Input.pdl +336 -0
  31. package/pdl/domains/Inspector.pdl +25 -0
  32. package/pdl/domains/LayerTree.pdl +178 -0
  33. package/pdl/domains/Log.pdl +93 -0
  34. package/pdl/domains/Media.pdl +106 -0
  35. package/pdl/domains/Memory.pdl +112 -0
  36. package/pdl/domains/Network.pdl +2039 -0
  37. package/pdl/domains/Overlay.pdl +498 -0
  38. package/pdl/domains/PWA.pdl +142 -0
  39. package/pdl/domains/Page.pdl +1767 -0
  40. package/pdl/domains/Performance.pdl +54 -0
  41. package/pdl/domains/PerformanceTimeline.pdl +71 -0
  42. package/pdl/domains/Preload.pdl +290 -0
  43. package/pdl/domains/Security.pdl +196 -0
  44. package/pdl/domains/ServiceWorker.pdl +121 -0
  45. package/pdl/domains/Storage.pdl +913 -0
  46. package/pdl/domains/SystemInfo.pdl +145 -0
  47. package/pdl/domains/Target.pdl +327 -0
  48. package/pdl/domains/Tethering.pdl +28 -0
  49. package/pdl/domains/Tracing.pdl +157 -0
  50. package/pdl/domains/WebAudio.pdl +205 -0
  51. package/pdl/domains/WebAuthn.pdl +230 -0
  52. package/types/protocol-mapping.d.ts +992 -615
  53. package/types/protocol-proxy-api.d.ts +543 -522
  54. package/types/protocol-tests-proxy-api.d.ts +628 -607
  55. package/types/protocol.d.ts +8059 -7903
@@ -0,0 +1,145 @@
1
+ # Copyright 2017 The Chromium Authors
2
+ # Use of this source code is governed by a BSD-style license that can be
3
+ # found in the LICENSE file.
4
+ #
5
+ # Contributing to Chrome DevTools Protocol: https://goo.gle/devtools-contribution-guide-cdp
6
+
7
+ # The SystemInfo domain defines methods and events for querying low-level system information.
8
+ experimental domain SystemInfo
9
+
10
+ # Describes a single graphics processor (GPU).
11
+ type GPUDevice extends object
12
+ properties
13
+ # PCI ID of the GPU vendor, if available; 0 otherwise.
14
+ number vendorId
15
+ # PCI ID of the GPU device, if available; 0 otherwise.
16
+ number deviceId
17
+ # Sub sys ID of the GPU, only available on Windows.
18
+ optional number subSysId
19
+ # Revision of the GPU, only available on Windows.
20
+ optional number revision
21
+ # String description of the GPU vendor, if the PCI ID is not available.
22
+ string vendorString
23
+ # String description of the GPU device, if the PCI ID is not available.
24
+ string deviceString
25
+ # String description of the GPU driver vendor.
26
+ string driverVendor
27
+ # String description of the GPU driver version.
28
+ string driverVersion
29
+
30
+ # Describes the width and height dimensions of an entity.
31
+ type Size extends object
32
+ properties
33
+ # Width in pixels.
34
+ integer width
35
+ # Height in pixels.
36
+ integer height
37
+
38
+ # Describes a supported video decoding profile with its associated minimum and
39
+ # maximum resolutions.
40
+ type VideoDecodeAcceleratorCapability extends object
41
+ properties
42
+ # Video codec profile that is supported, e.g. VP9 Profile 2.
43
+ string profile
44
+ # Maximum video dimensions in pixels supported for this |profile|.
45
+ Size maxResolution
46
+ # Minimum video dimensions in pixels supported for this |profile|.
47
+ Size minResolution
48
+
49
+ # Describes a supported video encoding profile with its associated maximum
50
+ # resolution and maximum framerate.
51
+ type VideoEncodeAcceleratorCapability extends object
52
+ properties
53
+ # Video codec profile that is supported, e.g H264 Main.
54
+ string profile
55
+ # Maximum video dimensions in pixels supported for this |profile|.
56
+ Size maxResolution
57
+ # Maximum encoding framerate in frames per second supported for this
58
+ # |profile|, as fraction's numerator and denominator, e.g. 24/1 fps,
59
+ # 24000/1001 fps, etc.
60
+ integer maxFramerateNumerator
61
+ integer maxFramerateDenominator
62
+
63
+ # YUV subsampling type of the pixels of a given image.
64
+ type SubsamplingFormat extends string
65
+ enum
66
+ yuv420
67
+ yuv422
68
+ yuv444
69
+
70
+ # Image format of a given image.
71
+ type ImageType extends string
72
+ enum
73
+ jpeg
74
+ webp
75
+ unknown
76
+
77
+ # Describes a supported image decoding profile with its associated minimum and
78
+ # maximum resolutions and subsampling.
79
+ type ImageDecodeAcceleratorCapability extends object
80
+ properties
81
+ # Image coded, e.g. Jpeg.
82
+ ImageType imageType
83
+ # Maximum supported dimensions of the image in pixels.
84
+ Size maxDimensions
85
+ # Minimum supported dimensions of the image in pixels.
86
+ Size minDimensions
87
+ # Optional array of supported subsampling formats, e.g. 4:2:0, if known.
88
+ array of SubsamplingFormat subsamplings
89
+
90
+ # Provides information about the GPU(s) on the system.
91
+ type GPUInfo extends object
92
+ properties
93
+ # The graphics devices on the system. Element 0 is the primary GPU.
94
+ array of GPUDevice devices
95
+ # An optional dictionary of additional GPU related attributes.
96
+ optional object auxAttributes
97
+ # An optional dictionary of graphics features and their status.
98
+ optional object featureStatus
99
+ # An optional array of GPU driver bug workarounds.
100
+ array of string driverBugWorkarounds
101
+ # Supported accelerated video decoding capabilities.
102
+ array of VideoDecodeAcceleratorCapability videoDecoding
103
+ # Supported accelerated video encoding capabilities.
104
+ array of VideoEncodeAcceleratorCapability videoEncoding
105
+ # Supported accelerated image decoding capabilities.
106
+ array of ImageDecodeAcceleratorCapability imageDecoding
107
+
108
+ # Represents process info.
109
+ type ProcessInfo extends object
110
+ properties
111
+ # Specifies process type.
112
+ string type
113
+ # Specifies process id.
114
+ integer id
115
+ # Specifies cumulative CPU usage in seconds across all threads of the
116
+ # process since the process start.
117
+ number cpuTime
118
+
119
+ # Returns information about the system.
120
+ command getInfo
121
+ returns
122
+ # Information about the GPUs on the system.
123
+ GPUInfo gpu
124
+ # A platform-dependent description of the model of the machine. On Mac OS, this is, for
125
+ # example, 'MacBookPro'. Will be the empty string if not supported.
126
+ string modelName
127
+ # A platform-dependent description of the version of the machine. On Mac OS, this is, for
128
+ # example, '10.1'. Will be the empty string if not supported.
129
+ string modelVersion
130
+ # The command line string used to launch the browser. Will be the empty string if not
131
+ # supported.
132
+ string commandLine
133
+
134
+ # Returns information about the feature state.
135
+ command getFeatureState
136
+ parameters
137
+ string featureState
138
+ returns
139
+ boolean featureEnabled
140
+
141
+ # Returns information about all running processes.
142
+ command getProcessInfo
143
+ returns
144
+ # An array of process info blocks.
145
+ array of ProcessInfo processInfo
@@ -0,0 +1,327 @@
1
+ # Copyright 2017 The Chromium Authors
2
+ # Use of this source code is governed by a BSD-style license that can be
3
+ # found in the LICENSE file.
4
+ #
5
+ # Contributing to Chrome DevTools Protocol: https://goo.gle/devtools-contribution-guide-cdp
6
+
7
+ # Supports additional targets discovery and allows to attach to them.
8
+ domain Target
9
+
10
+ type TargetID extends string
11
+
12
+ # Unique identifier of attached debugging session.
13
+ type SessionID extends string
14
+
15
+ type TargetInfo extends object
16
+ properties
17
+ TargetID targetId
18
+ # List of types: https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/devtools_agent_host_impl.cc?ss=chromium&q=f:devtools%20-f:out%20%22::kTypeTab%5B%5D%22
19
+ string type
20
+ string title
21
+ string url
22
+ # Whether the target has an attached client.
23
+ boolean attached
24
+ # Opener target Id
25
+ optional TargetID openerId
26
+ # Whether the target has access to the originating window.
27
+ experimental boolean canAccessOpener
28
+ # Frame id of originating window (is only set if target has an opener).
29
+ experimental optional Page.FrameId openerFrameId
30
+ # Id of the parent frame, only present for the "iframe" targets.
31
+ experimental optional Page.FrameId parentFrameId
32
+ experimental optional Browser.BrowserContextID browserContextId
33
+ # Provides additional details for specific target types. For example, for
34
+ # the type of "page", this may be set to "prerender".
35
+ experimental optional string subtype
36
+
37
+ # A filter used by target query/discovery/auto-attach operations.
38
+ experimental type FilterEntry extends object
39
+ properties
40
+ # If set, causes exclusion of matching targets from the list.
41
+ optional boolean exclude
42
+ # If not present, matches any type.
43
+ optional string type
44
+
45
+ # The entries in TargetFilter are matched sequentially against targets and
46
+ # the first entry that matches determines if the target is included or not,
47
+ # depending on the value of `exclude` field in the entry.
48
+ # If filter is not specified, the one assumed is
49
+ # [{type: "browser", exclude: true}, {type: "tab", exclude: true}, {}]
50
+ # (i.e. include everything but `browser` and `tab`).
51
+ experimental type TargetFilter extends array of FilterEntry
52
+
53
+ experimental type RemoteLocation extends object
54
+ properties
55
+ string host
56
+ integer port
57
+
58
+ # The state of the target window.
59
+ experimental type WindowState extends string
60
+ enum
61
+ normal
62
+ minimized
63
+ maximized
64
+ fullscreen
65
+
66
+ # Activates (focuses) the target.
67
+ command activateTarget
68
+ parameters
69
+ TargetID targetId
70
+
71
+ # Attaches to the target with given id.
72
+ command attachToTarget
73
+ parameters
74
+ TargetID targetId
75
+ # Enables "flat" access to the session via specifying sessionId attribute in the commands.
76
+ # We plan to make this the default, deprecate non-flattened mode,
77
+ # and eventually retire it. See crbug.com/991325.
78
+ optional boolean flatten
79
+ returns
80
+ # Id assigned to the session.
81
+ SessionID sessionId
82
+
83
+ # Attaches to the browser target, only uses flat sessionId mode.
84
+ experimental command attachToBrowserTarget
85
+ returns
86
+ # Id assigned to the session.
87
+ SessionID sessionId
88
+
89
+ # Closes the target. If the target is a page that gets closed too.
90
+ command closeTarget
91
+ parameters
92
+ TargetID targetId
93
+ returns
94
+ # Always set to true. If an error occurs, the response indicates protocol error.
95
+ deprecated boolean success
96
+
97
+ # Inject object to the target's main frame that provides a communication
98
+ # channel with browser target.
99
+ #
100
+ # Injected object will be available as `window[bindingName]`.
101
+ #
102
+ # The object has the following API:
103
+ # - `binding.send(json)` - a method to send messages over the remote debugging protocol
104
+ # - `binding.onmessage = json => handleMessage(json)` - a callback that will be called for the protocol notifications and command responses.
105
+ experimental command exposeDevToolsProtocol
106
+ parameters
107
+ TargetID targetId
108
+ # Binding name, 'cdp' if not specified.
109
+ optional string bindingName
110
+ # If true, inherits the current root session's permissions (default: false).
111
+ optional boolean inheritPermissions
112
+
113
+ # Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than
114
+ # one.
115
+ command createBrowserContext
116
+ parameters
117
+ # If specified, disposes this context when debugging session disconnects.
118
+ experimental optional boolean disposeOnDetach
119
+ # Proxy server, similar to the one passed to --proxy-server
120
+ experimental optional string proxyServer
121
+ # Proxy bypass list, similar to the one passed to --proxy-bypass-list
122
+ experimental optional string proxyBypassList
123
+ # An optional list of origins to grant unlimited cross-origin access to.
124
+ # Parts of the URL other than those constituting origin are ignored.
125
+ experimental optional array of string originsWithUniversalNetworkAccess
126
+ returns
127
+ # The id of the context created.
128
+ Browser.BrowserContextID browserContextId
129
+
130
+ # Returns all browser contexts created with `Target.createBrowserContext` method.
131
+ command getBrowserContexts
132
+ returns
133
+ # An array of browser context ids.
134
+ array of Browser.BrowserContextID browserContextIds
135
+
136
+ # Creates a new page.
137
+ command createTarget
138
+ parameters
139
+ # The initial URL the page will be navigated to. An empty string indicates about:blank.
140
+ string url
141
+ # Frame left origin in DIP (requires newWindow to be true or headless shell).
142
+ experimental optional integer left
143
+ # Frame top origin in DIP (requires newWindow to be true or headless shell).
144
+ experimental optional integer top
145
+ # Frame width in DIP (requires newWindow to be true or headless shell).
146
+ optional integer width
147
+ # Frame height in DIP (requires newWindow to be true or headless shell).
148
+ optional integer height
149
+ # Frame window state (requires newWindow to be true or headless shell).
150
+ # Default is normal.
151
+ optional WindowState windowState
152
+ # The browser context to create the page in.
153
+ experimental optional Browser.BrowserContextID browserContextId
154
+ # Whether BeginFrames for this target will be controlled via DevTools (headless shell only,
155
+ # not supported on MacOS yet, false by default).
156
+ experimental optional boolean enableBeginFrameControl
157
+ # Whether to create a new Window or Tab (false by default, not supported by headless shell).
158
+ optional boolean newWindow
159
+ # Whether to create the target in background or foreground (false by default, not supported
160
+ # by headless shell).
161
+ optional boolean background
162
+ # Whether to create the target of type "tab".
163
+ experimental optional boolean forTab
164
+ # Whether to create a hidden target. The hidden target is observable via protocol, but not
165
+ # present in the tab UI strip. Cannot be created with `forTab: true`, `newWindow: true` or
166
+ # `background: false`. The life-time of the tab is limited to the life-time of the session.
167
+ experimental optional boolean hidden
168
+ returns
169
+ # The id of the page opened.
170
+ TargetID targetId
171
+
172
+ # Detaches session with given id.
173
+ command detachFromTarget
174
+ parameters
175
+ # Session to detach.
176
+ optional SessionID sessionId
177
+ # Deprecated.
178
+ deprecated optional TargetID targetId
179
+
180
+ # Deletes a BrowserContext. All the belonging pages will be closed without calling their
181
+ # beforeunload hooks.
182
+ command disposeBrowserContext
183
+ parameters
184
+ Browser.BrowserContextID browserContextId
185
+
186
+ # Returns information about a target.
187
+ experimental command getTargetInfo
188
+ parameters
189
+ optional TargetID targetId
190
+ returns
191
+ TargetInfo targetInfo
192
+
193
+ # Retrieves a list of available targets.
194
+ command getTargets
195
+ parameters
196
+ # Only targets matching filter will be reported. If filter is not specified
197
+ # and target discovery is currently enabled, a filter used for target discovery
198
+ # is used for consistency.
199
+ experimental optional TargetFilter filter
200
+ returns
201
+ # The list of targets.
202
+ array of TargetInfo targetInfos
203
+
204
+ # Sends protocol message over session with given id.
205
+ # Consider using flat mode instead; see commands attachToTarget, setAutoAttach,
206
+ # and crbug.com/991325.
207
+ deprecated command sendMessageToTarget
208
+ parameters
209
+ string message
210
+ # Identifier of the session.
211
+ optional SessionID sessionId
212
+ # Deprecated.
213
+ deprecated optional TargetID targetId
214
+
215
+ # Controls whether to automatically attach to new targets which are considered
216
+ # to be directly related to this one (for example, iframes or workers).
217
+ # When turned on, attaches to all existing related targets as well. When turned off,
218
+ # automatically detaches from all currently attached targets.
219
+ # This also clears all targets added by `autoAttachRelated` from the list of targets to watch
220
+ # for creation of related targets.
221
+ # You might want to call this recursively for auto-attached targets to attach
222
+ # to all available targets.
223
+ command setAutoAttach
224
+ parameters
225
+ # Whether to auto-attach to related targets.
226
+ boolean autoAttach
227
+ # Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`
228
+ # to run paused targets.
229
+ boolean waitForDebuggerOnStart
230
+ # Enables "flat" access to the session via specifying sessionId attribute in the commands.
231
+ # We plan to make this the default, deprecate non-flattened mode,
232
+ # and eventually retire it. See crbug.com/991325.
233
+ experimental optional boolean flatten
234
+ # Only targets matching filter will be attached.
235
+ experimental optional TargetFilter filter
236
+
237
+ # Adds the specified target to the list of targets that will be monitored for any related target
238
+ # creation (such as child frames, child workers and new versions of service worker) and reported
239
+ # through `attachedToTarget`. The specified target is also auto-attached.
240
+ # This cancels the effect of any previous `setAutoAttach` and is also cancelled by subsequent
241
+ # `setAutoAttach`. Only available at the Browser target.
242
+ experimental command autoAttachRelated
243
+ parameters
244
+ TargetID targetId
245
+ # Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`
246
+ # to run paused targets.
247
+ boolean waitForDebuggerOnStart
248
+ # Only targets matching filter will be attached.
249
+ experimental optional TargetFilter filter
250
+
251
+ # Controls whether to discover available targets and notify via
252
+ # `targetCreated/targetInfoChanged/targetDestroyed` events.
253
+ command setDiscoverTargets
254
+ parameters
255
+ # Whether to discover available targets.
256
+ boolean discover
257
+ # Only targets matching filter will be attached. If `discover` is false,
258
+ # `filter` must be omitted or empty.
259
+ experimental optional TargetFilter filter
260
+
261
+ # Enables target discovery for the specified locations, when `setDiscoverTargets` was set to
262
+ # `true`.
263
+ experimental command setRemoteLocations
264
+ parameters
265
+ # List of remote locations.
266
+ array of RemoteLocation locations
267
+
268
+ # Issued when attached to target because of auto-attach or `attachToTarget` command.
269
+ experimental event attachedToTarget
270
+ parameters
271
+ # Identifier assigned to the session used to send/receive messages.
272
+ SessionID sessionId
273
+ TargetInfo targetInfo
274
+ boolean waitingForDebugger
275
+
276
+ # Issued when detached from target for any reason (including `detachFromTarget` command). Can be
277
+ # issued multiple times per target if multiple sessions have been attached to it.
278
+ experimental event detachedFromTarget
279
+ parameters
280
+ # Detached session identifier.
281
+ SessionID sessionId
282
+ # Deprecated.
283
+ deprecated optional TargetID targetId
284
+
285
+ # Notifies about a new protocol message received from the session (as reported in
286
+ # `attachedToTarget` event).
287
+ event receivedMessageFromTarget
288
+ parameters
289
+ # Identifier of a session which sends a message.
290
+ SessionID sessionId
291
+ string message
292
+ # Deprecated.
293
+ deprecated optional TargetID targetId
294
+
295
+ # Issued when a possible inspection target is created.
296
+ event targetCreated
297
+ parameters
298
+ TargetInfo targetInfo
299
+
300
+ # Issued when a target is destroyed.
301
+ event targetDestroyed
302
+ parameters
303
+ TargetID targetId
304
+
305
+ # Issued when a target has crashed.
306
+ event targetCrashed
307
+ parameters
308
+ TargetID targetId
309
+ # Termination status type.
310
+ string status
311
+ # Termination error code.
312
+ integer errorCode
313
+
314
+ # Issued when some information about a target has changed. This only happens between
315
+ # `targetCreated` and `targetDestroyed`.
316
+ event targetInfoChanged
317
+ parameters
318
+ TargetInfo targetInfo
319
+
320
+ # Opens a DevTools window for the target.
321
+ experimental command openDevTools
322
+ parameters
323
+ # This can be the page or tab target ID.
324
+ TargetID targetId
325
+ returns
326
+ # The targetId of DevTools page target.
327
+ TargetID targetId
@@ -0,0 +1,28 @@
1
+ # Copyright 2017 The Chromium Authors
2
+ # Use of this source code is governed by a BSD-style license that can be
3
+ # found in the LICENSE file.
4
+ #
5
+ # Contributing to Chrome DevTools Protocol: https://goo.gle/devtools-contribution-guide-cdp
6
+
7
+ # The Tethering domain defines methods and events for browser port binding.
8
+ experimental domain Tethering
9
+
10
+ # Request browser port binding.
11
+ command bind
12
+ parameters
13
+ # Port number to bind.
14
+ integer port
15
+
16
+ # Request browser port unbinding.
17
+ command unbind
18
+ parameters
19
+ # Port number to unbind.
20
+ integer port
21
+
22
+ # Informs that port was successfully bound and got a specified connection id.
23
+ event accepted
24
+ parameters
25
+ # Port number that was successfully bound.
26
+ integer port
27
+ # Connection id to be used.
28
+ string connectionId
@@ -0,0 +1,157 @@
1
+ # Copyright 2017 The Chromium Authors
2
+ # Use of this source code is governed by a BSD-style license that can be
3
+ # found in the LICENSE file.
4
+ #
5
+ # Contributing to Chrome DevTools Protocol: https://goo.gle/devtools-contribution-guide-cdp
6
+
7
+ domain Tracing
8
+ depends on IO
9
+
10
+ # Configuration for memory dump. Used only when "memory-infra" category is enabled.
11
+ experimental type MemoryDumpConfig extends object
12
+
13
+ type TraceConfig extends object
14
+ properties
15
+ # Controls how the trace buffer stores data. The default is `recordUntilFull`.
16
+ experimental optional enum recordMode
17
+ recordUntilFull
18
+ recordContinuously
19
+ recordAsMuchAsPossible
20
+ echoToConsole
21
+ # Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value
22
+ # of 200 MB would be used.
23
+ experimental optional number traceBufferSizeInKb
24
+ # Turns on JavaScript stack sampling.
25
+ experimental optional boolean enableSampling
26
+ # Turns on system tracing.
27
+ experimental optional boolean enableSystrace
28
+ # Turns on argument filter.
29
+ experimental optional boolean enableArgumentFilter
30
+ # Included category filters.
31
+ optional array of string includedCategories
32
+ # Excluded category filters.
33
+ optional array of string excludedCategories
34
+ # Configuration to synthesize the delays in tracing.
35
+ experimental optional array of string syntheticDelays
36
+ # Configuration for memory dump triggers. Used only when "memory-infra" category is enabled.
37
+ experimental optional MemoryDumpConfig memoryDumpConfig
38
+
39
+ # Data format of a trace. Can be either the legacy JSON format or the
40
+ # protocol buffer format. Note that the JSON format will be deprecated soon.
41
+ experimental type StreamFormat extends string
42
+ enum
43
+ json
44
+ proto
45
+
46
+ # Compression type to use for traces returned via streams.
47
+ experimental type StreamCompression extends string
48
+ enum
49
+ none
50
+ gzip
51
+
52
+ # Details exposed when memory request explicitly declared.
53
+ # Keep consistent with memory_dump_request_args.h and
54
+ # memory_instrumentation.mojom
55
+ experimental type MemoryDumpLevelOfDetail extends string
56
+ enum
57
+ background
58
+ light
59
+ detailed
60
+
61
+ # Backend type to use for tracing. `chrome` uses the Chrome-integrated
62
+ # tracing service and is supported on all platforms. `system` is only
63
+ # supported on Chrome OS and uses the Perfetto system tracing service.
64
+ # `auto` chooses `system` when the perfettoConfig provided to Tracing.start
65
+ # specifies at least one non-Chrome data source; otherwise uses `chrome`.
66
+ experimental type TracingBackend extends string
67
+ enum
68
+ auto
69
+ chrome
70
+ system
71
+
72
+ # Stop trace events collection.
73
+ command end
74
+
75
+ # Gets supported tracing categories.
76
+ experimental command getCategories
77
+ returns
78
+ # A list of supported tracing categories.
79
+ array of string categories
80
+
81
+ # Record a clock sync marker in the trace.
82
+ experimental command recordClockSyncMarker
83
+ parameters
84
+ # The ID of this clock sync marker
85
+ string syncId
86
+
87
+ # Request a global memory dump.
88
+ experimental command requestMemoryDump
89
+ parameters
90
+ # Enables more deterministic results by forcing garbage collection
91
+ optional boolean deterministic
92
+ # Specifies level of details in memory dump. Defaults to "detailed".
93
+ optional MemoryDumpLevelOfDetail levelOfDetail
94
+ returns
95
+ # GUID of the resulting global memory dump.
96
+ string dumpGuid
97
+ # True iff the global memory dump succeeded.
98
+ boolean success
99
+
100
+ # Start trace events collection.
101
+ command start
102
+ parameters
103
+ # Category/tag filter
104
+ experimental deprecated optional string categories
105
+ # Tracing options
106
+ experimental deprecated optional string options
107
+ # If set, the agent will issue bufferUsage events at this interval, specified in milliseconds
108
+ experimental optional number bufferUsageReportingInterval
109
+ # Whether to report trace events as series of dataCollected events or to save trace to a
110
+ # stream (defaults to `ReportEvents`).
111
+ optional enum transferMode
112
+ ReportEvents
113
+ ReturnAsStream
114
+ # Trace data format to use. This only applies when using `ReturnAsStream`
115
+ # transfer mode (defaults to `json`).
116
+ optional StreamFormat streamFormat
117
+ # Compression format to use. This only applies when using `ReturnAsStream`
118
+ # transfer mode (defaults to `none`)
119
+ experimental optional StreamCompression streamCompression
120
+ optional TraceConfig traceConfig
121
+ # Base64-encoded serialized perfetto.protos.TraceConfig protobuf message
122
+ # When specified, the parameters `categories`, `options`, `traceConfig`
123
+ # are ignored.
124
+ experimental optional binary perfettoConfig
125
+ # Backend type (defaults to `auto`)
126
+ experimental optional TracingBackend tracingBackend
127
+
128
+ experimental event bufferUsage
129
+ parameters
130
+ # A number in range [0..1] that indicates the used size of event buffer as a fraction of its
131
+ # total size.
132
+ optional number percentFull
133
+ # An approximate number of events in the trace log.
134
+ optional number eventCount
135
+ # A number in range [0..1] that indicates the used size of event buffer as a fraction of its
136
+ # total size.
137
+ optional number value
138
+
139
+ # Contains a bucket of collected trace events. When tracing is stopped collected events will be
140
+ # sent as a sequence of dataCollected events followed by tracingComplete event.
141
+ experimental event dataCollected
142
+ parameters
143
+ array of object value
144
+
145
+ # Signals that tracing is stopped and there is no trace buffers pending flush, all data were
146
+ # delivered via dataCollected events.
147
+ event tracingComplete
148
+ parameters
149
+ # Indicates whether some trace data is known to have been lost, e.g. because the trace ring
150
+ # buffer wrapped around.
151
+ boolean dataLossOccurred
152
+ # A handle of the stream that holds resulting trace data.
153
+ optional IO.StreamHandle stream
154
+ # Trace data format of returned stream.
155
+ optional StreamFormat traceFormat
156
+ # Compression format of returned stream.
157
+ optional StreamCompression streamCompression