devtools-protocol 0.0.1056622 → 0.0.1057312
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 +0 -85
- package/package.json +1 -1
- package/pdl/browser_protocol.pdl +1 -1
- package/pdl/js_protocol.pdl +0 -36
- package/types/protocol-mapping.d.ts +0 -21
- package/types/protocol-proxy-api.d.ts +0 -15
- package/types/protocol.d.ts +0 -49
package/json/js_protocol.json
CHANGED
@@ -1974,66 +1974,6 @@
|
|
1974
1974
|
}
|
1975
1975
|
}
|
1976
1976
|
]
|
1977
|
-
},
|
1978
|
-
{
|
1979
|
-
"id": "TypeObject",
|
1980
|
-
"description": "Describes a type collected during runtime.",
|
1981
|
-
"experimental": true,
|
1982
|
-
"type": "object",
|
1983
|
-
"properties": [
|
1984
|
-
{
|
1985
|
-
"name": "name",
|
1986
|
-
"description": "Name of a type collected with type profiling.",
|
1987
|
-
"type": "string"
|
1988
|
-
}
|
1989
|
-
]
|
1990
|
-
},
|
1991
|
-
{
|
1992
|
-
"id": "TypeProfileEntry",
|
1993
|
-
"description": "Source offset and types for a parameter or return value.",
|
1994
|
-
"experimental": true,
|
1995
|
-
"type": "object",
|
1996
|
-
"properties": [
|
1997
|
-
{
|
1998
|
-
"name": "offset",
|
1999
|
-
"description": "Source offset of the parameter or end of function for return values.",
|
2000
|
-
"type": "integer"
|
2001
|
-
},
|
2002
|
-
{
|
2003
|
-
"name": "types",
|
2004
|
-
"description": "The types for this parameter or return value.",
|
2005
|
-
"type": "array",
|
2006
|
-
"items": {
|
2007
|
-
"$ref": "TypeObject"
|
2008
|
-
}
|
2009
|
-
}
|
2010
|
-
]
|
2011
|
-
},
|
2012
|
-
{
|
2013
|
-
"id": "ScriptTypeProfile",
|
2014
|
-
"description": "Type profile data collected during runtime for a JavaScript script.",
|
2015
|
-
"experimental": true,
|
2016
|
-
"type": "object",
|
2017
|
-
"properties": [
|
2018
|
-
{
|
2019
|
-
"name": "scriptId",
|
2020
|
-
"description": "JavaScript script id.",
|
2021
|
-
"$ref": "Runtime.ScriptId"
|
2022
|
-
},
|
2023
|
-
{
|
2024
|
-
"name": "url",
|
2025
|
-
"description": "JavaScript script name or url.",
|
2026
|
-
"type": "string"
|
2027
|
-
},
|
2028
|
-
{
|
2029
|
-
"name": "entries",
|
2030
|
-
"description": "Type profile entries for parameters and return values of the functions in the script.",
|
2031
|
-
"type": "array",
|
2032
|
-
"items": {
|
2033
|
-
"$ref": "TypeProfileEntry"
|
2034
|
-
}
|
2035
|
-
}
|
2036
|
-
]
|
2037
1977
|
}
|
2038
1978
|
],
|
2039
1979
|
"commands": [
|
@@ -2102,11 +2042,6 @@
|
|
2102
2042
|
}
|
2103
2043
|
]
|
2104
2044
|
},
|
2105
|
-
{
|
2106
|
-
"name": "startTypeProfile",
|
2107
|
-
"description": "Enable type profile.",
|
2108
|
-
"experimental": true
|
2109
|
-
},
|
2110
2045
|
{
|
2111
2046
|
"name": "stop",
|
2112
2047
|
"returns": [
|
@@ -2121,11 +2056,6 @@
|
|
2121
2056
|
"name": "stopPreciseCoverage",
|
2122
2057
|
"description": "Disable precise code coverage. Disabling releases unnecessary execution count records and allows\nexecuting optimized code."
|
2123
2058
|
},
|
2124
|
-
{
|
2125
|
-
"name": "stopTypeProfile",
|
2126
|
-
"description": "Disable type profile. Disabling releases type profile data collected so far.",
|
2127
|
-
"experimental": true
|
2128
|
-
},
|
2129
2059
|
{
|
2130
2060
|
"name": "takePreciseCoverage",
|
2131
2061
|
"description": "Collect coverage data for the current isolate, and resets execution counters. Precise code\ncoverage needs to have started.",
|
@@ -2144,21 +2074,6 @@
|
|
2144
2074
|
"type": "number"
|
2145
2075
|
}
|
2146
2076
|
]
|
2147
|
-
},
|
2148
|
-
{
|
2149
|
-
"name": "takeTypeProfile",
|
2150
|
-
"description": "Collect type profile.",
|
2151
|
-
"experimental": true,
|
2152
|
-
"returns": [
|
2153
|
-
{
|
2154
|
-
"name": "result",
|
2155
|
-
"description": "Type profile for all scripts since startTypeProfile() was turned on.",
|
2156
|
-
"type": "array",
|
2157
|
-
"items": {
|
2158
|
-
"$ref": "ScriptTypeProfile"
|
2159
|
-
}
|
2160
|
-
}
|
2161
|
-
]
|
2162
2077
|
}
|
2163
2078
|
],
|
2164
2079
|
"events": [
|
package/package.json
CHANGED
package/pdl/browser_protocol.pdl
CHANGED
@@ -5277,7 +5277,7 @@ domain Network
|
|
5277
5277
|
# HTTPS DNS protocol upgrade job won a race with a normal connection and
|
5278
5278
|
# an Alternate Protocol job.
|
5279
5279
|
dnsAlpnH3JobWonRace
|
5280
|
-
#
|
5280
|
+
# This value is used when the reason is unknown.
|
5281
5281
|
unspecifiedReason
|
5282
5282
|
|
5283
5283
|
# HTTP response data.
|
package/pdl/js_protocol.pdl
CHANGED
@@ -918,30 +918,6 @@ domain Profiler
|
|
918
918
|
# Functions contained in the script that has coverage data.
|
919
919
|
array of FunctionCoverage functions
|
920
920
|
|
921
|
-
# Describes a type collected during runtime.
|
922
|
-
experimental type TypeObject extends object
|
923
|
-
properties
|
924
|
-
# Name of a type collected with type profiling.
|
925
|
-
string name
|
926
|
-
|
927
|
-
# Source offset and types for a parameter or return value.
|
928
|
-
experimental type TypeProfileEntry extends object
|
929
|
-
properties
|
930
|
-
# Source offset of the parameter or end of function for return values.
|
931
|
-
integer offset
|
932
|
-
# The types for this parameter or return value.
|
933
|
-
array of TypeObject types
|
934
|
-
|
935
|
-
# Type profile data collected during runtime for a JavaScript script.
|
936
|
-
experimental type ScriptTypeProfile extends object
|
937
|
-
properties
|
938
|
-
# JavaScript script id.
|
939
|
-
Runtime.ScriptId scriptId
|
940
|
-
# JavaScript script name or url.
|
941
|
-
string url
|
942
|
-
# Type profile entries for parameters and return values of the functions in the script.
|
943
|
-
array of TypeProfileEntry entries
|
944
|
-
|
945
921
|
command disable
|
946
922
|
|
947
923
|
command enable
|
@@ -976,9 +952,6 @@ domain Profiler
|
|
976
952
|
# Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
|
977
953
|
number timestamp
|
978
954
|
|
979
|
-
# Enable type profile.
|
980
|
-
experimental command startTypeProfile
|
981
|
-
|
982
955
|
command stop
|
983
956
|
returns
|
984
957
|
# Recorded profile.
|
@@ -988,9 +961,6 @@ domain Profiler
|
|
988
961
|
# executing optimized code.
|
989
962
|
command stopPreciseCoverage
|
990
963
|
|
991
|
-
# Disable type profile. Disabling releases type profile data collected so far.
|
992
|
-
experimental command stopTypeProfile
|
993
|
-
|
994
964
|
# Collect coverage data for the current isolate, and resets execution counters. Precise code
|
995
965
|
# coverage needs to have started.
|
996
966
|
command takePreciseCoverage
|
@@ -1000,12 +970,6 @@ domain Profiler
|
|
1000
970
|
# Monotonically increasing time (in seconds) when the coverage update was taken in the backend.
|
1001
971
|
number timestamp
|
1002
972
|
|
1003
|
-
# Collect type profile.
|
1004
|
-
experimental command takeTypeProfile
|
1005
|
-
returns
|
1006
|
-
# Type profile for all scripts since startTypeProfile() was turned on.
|
1007
|
-
array of ScriptTypeProfile result
|
1008
|
-
|
1009
973
|
event consoleProfileFinished
|
1010
974
|
parameters
|
1011
975
|
string id
|
@@ -1063,13 +1063,6 @@ export namespace ProtocolMapping {
|
|
1063
1063
|
paramsType: [Protocol.Profiler.StartPreciseCoverageRequest?];
|
1064
1064
|
returnType: Protocol.Profiler.StartPreciseCoverageResponse;
|
1065
1065
|
};
|
1066
|
-
/**
|
1067
|
-
* Enable type profile.
|
1068
|
-
*/
|
1069
|
-
'Profiler.startTypeProfile': {
|
1070
|
-
paramsType: [];
|
1071
|
-
returnType: void;
|
1072
|
-
};
|
1073
1066
|
'Profiler.stop': {
|
1074
1067
|
paramsType: [];
|
1075
1068
|
returnType: Protocol.Profiler.StopResponse;
|
@@ -1082,13 +1075,6 @@ export namespace ProtocolMapping {
|
|
1082
1075
|
paramsType: [];
|
1083
1076
|
returnType: void;
|
1084
1077
|
};
|
1085
|
-
/**
|
1086
|
-
* Disable type profile. Disabling releases type profile data collected so far.
|
1087
|
-
*/
|
1088
|
-
'Profiler.stopTypeProfile': {
|
1089
|
-
paramsType: [];
|
1090
|
-
returnType: void;
|
1091
|
-
};
|
1092
1078
|
/**
|
1093
1079
|
* Collect coverage data for the current isolate, and resets execution counters. Precise code
|
1094
1080
|
* coverage needs to have started.
|
@@ -1097,13 +1083,6 @@ export namespace ProtocolMapping {
|
|
1097
1083
|
paramsType: [];
|
1098
1084
|
returnType: Protocol.Profiler.TakePreciseCoverageResponse;
|
1099
1085
|
};
|
1100
|
-
/**
|
1101
|
-
* Collect type profile.
|
1102
|
-
*/
|
1103
|
-
'Profiler.takeTypeProfile': {
|
1104
|
-
paramsType: [];
|
1105
|
-
returnType: Protocol.Profiler.TakeTypeProfileResponse;
|
1106
|
-
};
|
1107
1086
|
/**
|
1108
1087
|
* Add handler to promise with given promise object id.
|
1109
1088
|
*/
|
@@ -421,11 +421,6 @@ export namespace ProtocolProxyApi {
|
|
421
421
|
*/
|
422
422
|
startPreciseCoverage(params: Protocol.Profiler.StartPreciseCoverageRequest): Promise<Protocol.Profiler.StartPreciseCoverageResponse>;
|
423
423
|
|
424
|
-
/**
|
425
|
-
* Enable type profile.
|
426
|
-
*/
|
427
|
-
startTypeProfile(): Promise<void>;
|
428
|
-
|
429
424
|
stop(): Promise<Protocol.Profiler.StopResponse>;
|
430
425
|
|
431
426
|
/**
|
@@ -434,22 +429,12 @@ export namespace ProtocolProxyApi {
|
|
434
429
|
*/
|
435
430
|
stopPreciseCoverage(): Promise<void>;
|
436
431
|
|
437
|
-
/**
|
438
|
-
* Disable type profile. Disabling releases type profile data collected so far.
|
439
|
-
*/
|
440
|
-
stopTypeProfile(): Promise<void>;
|
441
|
-
|
442
432
|
/**
|
443
433
|
* Collect coverage data for the current isolate, and resets execution counters. Precise code
|
444
434
|
* coverage needs to have started.
|
445
435
|
*/
|
446
436
|
takePreciseCoverage(): Promise<Protocol.Profiler.TakePreciseCoverageResponse>;
|
447
437
|
|
448
|
-
/**
|
449
|
-
* Collect type profile.
|
450
|
-
*/
|
451
|
-
takeTypeProfile(): Promise<Protocol.Profiler.TakeTypeProfileResponse>;
|
452
|
-
|
453
438
|
on(event: 'consoleProfileFinished', listener: (params: Protocol.Profiler.ConsoleProfileFinishedEvent) => void): void;
|
454
439
|
|
455
440
|
/**
|
package/types/protocol.d.ts
CHANGED
@@ -1369,48 +1369,6 @@ export namespace Protocol {
|
|
1369
1369
|
functions: FunctionCoverage[];
|
1370
1370
|
}
|
1371
1371
|
|
1372
|
-
/**
|
1373
|
-
* Describes a type collected during runtime.
|
1374
|
-
*/
|
1375
|
-
export interface TypeObject {
|
1376
|
-
/**
|
1377
|
-
* Name of a type collected with type profiling.
|
1378
|
-
*/
|
1379
|
-
name: string;
|
1380
|
-
}
|
1381
|
-
|
1382
|
-
/**
|
1383
|
-
* Source offset and types for a parameter or return value.
|
1384
|
-
*/
|
1385
|
-
export interface TypeProfileEntry {
|
1386
|
-
/**
|
1387
|
-
* Source offset of the parameter or end of function for return values.
|
1388
|
-
*/
|
1389
|
-
offset: integer;
|
1390
|
-
/**
|
1391
|
-
* The types for this parameter or return value.
|
1392
|
-
*/
|
1393
|
-
types: TypeObject[];
|
1394
|
-
}
|
1395
|
-
|
1396
|
-
/**
|
1397
|
-
* Type profile data collected during runtime for a JavaScript script.
|
1398
|
-
*/
|
1399
|
-
export interface ScriptTypeProfile {
|
1400
|
-
/**
|
1401
|
-
* JavaScript script id.
|
1402
|
-
*/
|
1403
|
-
scriptId: Runtime.ScriptId;
|
1404
|
-
/**
|
1405
|
-
* JavaScript script name or url.
|
1406
|
-
*/
|
1407
|
-
url: string;
|
1408
|
-
/**
|
1409
|
-
* Type profile entries for parameters and return values of the functions in the script.
|
1410
|
-
*/
|
1411
|
-
entries: TypeProfileEntry[];
|
1412
|
-
}
|
1413
|
-
|
1414
1372
|
export interface GetBestEffortCoverageResponse {
|
1415
1373
|
/**
|
1416
1374
|
* Coverage data for the current isolate.
|
@@ -1465,13 +1423,6 @@ export namespace Protocol {
|
|
1465
1423
|
timestamp: number;
|
1466
1424
|
}
|
1467
1425
|
|
1468
|
-
export interface TakeTypeProfileResponse {
|
1469
|
-
/**
|
1470
|
-
* Type profile for all scripts since startTypeProfile() was turned on.
|
1471
|
-
*/
|
1472
|
-
result: ScriptTypeProfile[];
|
1473
|
-
}
|
1474
|
-
|
1475
1426
|
export interface ConsoleProfileFinishedEvent {
|
1476
1427
|
id: string;
|
1477
1428
|
/**
|