devtools-protocol 0.0.1410712 → 0.0.1412693
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.
package/json/js_protocol.json
CHANGED
@@ -386,6 +386,22 @@
|
|
386
386
|
"type": "string"
|
387
387
|
}
|
388
388
|
]
|
389
|
+
},
|
390
|
+
{
|
391
|
+
"id": "ResolvedBreakpoint",
|
392
|
+
"type": "object",
|
393
|
+
"properties": [
|
394
|
+
{
|
395
|
+
"name": "breakpointId",
|
396
|
+
"description": "Breakpoint unique identifier.",
|
397
|
+
"$ref": "BreakpointId"
|
398
|
+
},
|
399
|
+
{
|
400
|
+
"name": "location",
|
401
|
+
"description": "Actual breakpoint location.",
|
402
|
+
"$ref": "Location"
|
403
|
+
}
|
404
|
+
]
|
389
405
|
}
|
390
406
|
],
|
391
407
|
"commands": [
|
@@ -1180,7 +1196,8 @@
|
|
1180
1196
|
"events": [
|
1181
1197
|
{
|
1182
1198
|
"name": "breakpointResolved",
|
1183
|
-
"description": "Fired when breakpoint is resolved to an actual script and location.",
|
1199
|
+
"description": "Fired when breakpoint is resolved to an actual script and location.\nDeprecated in favor of `resolvedBreakpoints` in the `scriptParsed` event.",
|
1200
|
+
"deprecated": true,
|
1184
1201
|
"parameters": [
|
1185
1202
|
{
|
1186
1203
|
"name": "breakpointId",
|
@@ -1500,6 +1517,16 @@
|
|
1500
1517
|
"experimental": true,
|
1501
1518
|
"optional": true,
|
1502
1519
|
"type": "string"
|
1520
|
+
},
|
1521
|
+
{
|
1522
|
+
"name": "resolvedBreakpoints",
|
1523
|
+
"description": "The list of set breakpoints in this script if calls to `setBreakpointByUrl`\nmatches this script's URL or hash. Clients that use this list can ignore the\n`breakpointResolved` event. They are equivalent.",
|
1524
|
+
"experimental": true,
|
1525
|
+
"optional": true,
|
1526
|
+
"type": "array",
|
1527
|
+
"items": {
|
1528
|
+
"$ref": "ResolvedBreakpoint"
|
1529
|
+
}
|
1503
1530
|
}
|
1504
1531
|
]
|
1505
1532
|
}
|
@@ -3240,12 +3267,22 @@
|
|
3240
3267
|
"returns": [
|
3241
3268
|
{
|
3242
3269
|
"name": "usedSize",
|
3243
|
-
"description": "Used heap size in bytes.",
|
3270
|
+
"description": "Used JavaScript heap size in bytes.",
|
3244
3271
|
"type": "number"
|
3245
3272
|
},
|
3246
3273
|
{
|
3247
3274
|
"name": "totalSize",
|
3248
|
-
"description": "Allocated heap size in bytes.",
|
3275
|
+
"description": "Allocated JavaScript heap size in bytes.",
|
3276
|
+
"type": "number"
|
3277
|
+
},
|
3278
|
+
{
|
3279
|
+
"name": "embedderHeapUsedSize",
|
3280
|
+
"description": "Used size in bytes in the embedder's garbage-collected heap.",
|
3281
|
+
"type": "number"
|
3282
|
+
},
|
3283
|
+
{
|
3284
|
+
"name": "backingStorageSize",
|
3285
|
+
"description": "Size in bytes of backing storage for array buffers and external strings.",
|
3249
3286
|
"type": "number"
|
3250
3287
|
}
|
3251
3288
|
]
|
package/package.json
CHANGED
package/pdl/js_protocol.pdl
CHANGED
@@ -564,7 +564,8 @@ domain Debugger
|
|
564
564
|
experimental optional array of LocationRange skipList
|
565
565
|
|
566
566
|
# Fired when breakpoint is resolved to an actual script and location.
|
567
|
-
event
|
567
|
+
# Deprecated in favor of `resolvedBreakpoints` in the `scriptParsed` event.
|
568
|
+
deprecated event breakpointResolved
|
568
569
|
parameters
|
569
570
|
# Breakpoint unique identifier.
|
570
571
|
BreakpointId breakpointId
|
@@ -622,6 +623,13 @@ domain Debugger
|
|
622
623
|
# URL of the external symbol source.
|
623
624
|
optional string externalURL
|
624
625
|
|
626
|
+
type ResolvedBreakpoint extends object
|
627
|
+
properties
|
628
|
+
# Breakpoint unique identifier.
|
629
|
+
BreakpointId breakpointId
|
630
|
+
# Actual breakpoint location.
|
631
|
+
Location location
|
632
|
+
|
625
633
|
# Fired when virtual machine fails to parse the script.
|
626
634
|
event scriptFailedToParse
|
627
635
|
parameters
|
@@ -706,6 +714,10 @@ domain Debugger
|
|
706
714
|
experimental optional array of Debugger.DebugSymbols debugSymbols
|
707
715
|
# The name the embedder supplied for this script.
|
708
716
|
experimental optional string embedderName
|
717
|
+
# The list of set breakpoints in this script if calls to `setBreakpointByUrl`
|
718
|
+
# matches this script's URL or hash. Clients that use this list can ignore the
|
719
|
+
# `breakpointResolved` event. They are equivalent.
|
720
|
+
experimental optional array of ResolvedBreakpoint resolvedBreakpoints
|
709
721
|
|
710
722
|
experimental domain HeapProfiler
|
711
723
|
depends on Runtime
|
@@ -1560,10 +1572,14 @@ domain Runtime
|
|
1560
1572
|
# It is the total usage of the corresponding isolate not scoped to a particular Runtime.
|
1561
1573
|
experimental command getHeapUsage
|
1562
1574
|
returns
|
1563
|
-
# Used heap size in bytes.
|
1575
|
+
# Used JavaScript heap size in bytes.
|
1564
1576
|
number usedSize
|
1565
|
-
# Allocated heap size in bytes.
|
1577
|
+
# Allocated JavaScript heap size in bytes.
|
1566
1578
|
number totalSize
|
1579
|
+
# Used size in bytes in the embedder's garbage-collected heap.
|
1580
|
+
number embedderHeapUsedSize
|
1581
|
+
# Size in bytes of backing storage for array buffers and external strings.
|
1582
|
+
number backingStorageSize
|
1567
1583
|
|
1568
1584
|
# Returns properties of a given object. Object group of the result is inherited from the target
|
1569
1585
|
# object.
|
@@ -15,6 +15,7 @@ export namespace ProtocolMapping {
|
|
15
15
|
'Console.messageAdded': [Protocol.Console.MessageAddedEvent];
|
16
16
|
/**
|
17
17
|
* Fired when breakpoint is resolved to an actual script and location.
|
18
|
+
* Deprecated in favor of `resolvedBreakpoints` in the `scriptParsed` event.
|
18
19
|
*/
|
19
20
|
'Debugger.breakpointResolved': [Protocol.Debugger.BreakpointResolvedEvent];
|
20
21
|
/**
|
@@ -342,6 +342,7 @@ export namespace ProtocolProxyApi {
|
|
342
342
|
|
343
343
|
/**
|
344
344
|
* Fired when breakpoint is resolved to an actual script and location.
|
345
|
+
* Deprecated in favor of `resolvedBreakpoints` in the `scriptParsed` event.
|
345
346
|
*/
|
346
347
|
on(event: 'breakpointResolved', listener: (params: Protocol.Debugger.BreakpointResolvedEvent) => void): void;
|
347
348
|
|
@@ -344,6 +344,7 @@ export namespace ProtocolTestsProxyApi {
|
|
344
344
|
|
345
345
|
/**
|
346
346
|
* Fired when breakpoint is resolved to an actual script and location.
|
347
|
+
* Deprecated in favor of `resolvedBreakpoints` in the `scriptParsed` event.
|
347
348
|
*/
|
348
349
|
onBreakpointResolved(listener: (event: { params: Protocol.Debugger.BreakpointResolvedEvent }) => void): void;
|
349
350
|
offBreakpointResolved(listener: (event: { params: Protocol.Debugger.BreakpointResolvedEvent }) => void): void;
|
package/types/protocol.d.ts
CHANGED
@@ -289,6 +289,17 @@ export namespace Protocol {
|
|
289
289
|
externalURL?: string;
|
290
290
|
}
|
291
291
|
|
292
|
+
export interface ResolvedBreakpoint {
|
293
|
+
/**
|
294
|
+
* Breakpoint unique identifier.
|
295
|
+
*/
|
296
|
+
breakpointId: BreakpointId;
|
297
|
+
/**
|
298
|
+
* Actual breakpoint location.
|
299
|
+
*/
|
300
|
+
location: Location;
|
301
|
+
}
|
302
|
+
|
292
303
|
export const enum ContinueToLocationRequestTargetCallFrames {
|
293
304
|
Any = 'any',
|
294
305
|
Current = 'current',
|
@@ -823,6 +834,7 @@ export namespace Protocol {
|
|
823
834
|
|
824
835
|
/**
|
825
836
|
* Fired when breakpoint is resolved to an actual script and location.
|
837
|
+
* Deprecated in favor of `resolvedBreakpoints` in the `scriptParsed` event.
|
826
838
|
*/
|
827
839
|
export interface BreakpointResolvedEvent {
|
828
840
|
/**
|
@@ -1048,6 +1060,12 @@ export namespace Protocol {
|
|
1048
1060
|
* The name the embedder supplied for this script.
|
1049
1061
|
*/
|
1050
1062
|
embedderName?: string;
|
1063
|
+
/**
|
1064
|
+
* The list of set breakpoints in this script if calls to `setBreakpointByUrl`
|
1065
|
+
* matches this script's URL or hash. Clients that use this list can ignore the
|
1066
|
+
* `breakpointResolved` event. They are equivalent.
|
1067
|
+
*/
|
1068
|
+
resolvedBreakpoints?: ResolvedBreakpoint[];
|
1051
1069
|
}
|
1052
1070
|
}
|
1053
1071
|
|
@@ -2318,13 +2336,21 @@ export namespace Protocol {
|
|
2318
2336
|
|
2319
2337
|
export interface GetHeapUsageResponse {
|
2320
2338
|
/**
|
2321
|
-
* Used heap size in bytes.
|
2339
|
+
* Used JavaScript heap size in bytes.
|
2322
2340
|
*/
|
2323
2341
|
usedSize: number;
|
2324
2342
|
/**
|
2325
|
-
* Allocated heap size in bytes.
|
2343
|
+
* Allocated JavaScript heap size in bytes.
|
2326
2344
|
*/
|
2327
2345
|
totalSize: number;
|
2346
|
+
/**
|
2347
|
+
* Used size in bytes in the embedder's garbage-collected heap.
|
2348
|
+
*/
|
2349
|
+
embedderHeapUsedSize: number;
|
2350
|
+
/**
|
2351
|
+
* Size in bytes of backing storage for array buffers and external strings.
|
2352
|
+
*/
|
2353
|
+
backingStorageSize: number;
|
2328
2354
|
}
|
2329
2355
|
|
2330
2356
|
export interface GetPropertiesRequest {
|