OLD | NEW |
1 { | 1 { |
2 "version": { "major": "1", "minor": "2" }, | 2 "version": { "major": "1", "minor": "2" }, |
3 "domains": [ | 3 "domains": [ |
4 { | 4 { |
5 "domain": "Schema", | 5 "domain": "Schema", |
6 "description": "Provides information about the protocol schema.", | 6 "description": "Provides information about the protocol schema.", |
7 "types": [ | 7 "types": [ |
8 { | 8 { |
9 "id": "Domain", | 9 "id": "Domain", |
10 "type": "object", | 10 "type": "object", |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 { | 197 { |
198 "id": "StackTrace", | 198 "id": "StackTrace", |
199 "type": "object", | 199 "type": "object", |
200 "description": "Call frames for assertions or error messages.", | 200 "description": "Call frames for assertions or error messages.", |
201 "properties": [ | 201 "properties": [ |
202 { "name": "description", "type": "string", "optional": true,
"description": "String label of this stack trace. For async traces this may be
a name of the function that initiated the async call." }, | 202 { "name": "description", "type": "string", "optional": true,
"description": "String label of this stack trace. For async traces this may be
a name of the function that initiated the async call." }, |
203 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "JavaScript function name." }, | 203 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "JavaScript function name." }, |
204 { "name": "parent", "$ref": "StackTrace", "optional": true,
"description": "Asynchronous JavaScript stack trace that preceded this stack, if
available." }, | 204 { "name": "parent", "$ref": "StackTrace", "optional": true,
"description": "Asynchronous JavaScript stack trace that preceded this stack, if
available." }, |
205 { "name": "promiseCreationFrame", "$ref": "CallFrame", "opti
onal": true, "experimental": true, "description": "Creation frame of the Promise
which produced the next synchronous trace when resolved, if available." } | 205 { "name": "promiseCreationFrame", "$ref": "CallFrame", "opti
onal": true, "experimental": true, "description": "Creation frame of the Promise
which produced the next synchronous trace when resolved, if available." } |
206 ] | 206 ] |
207 }, | |
208 { "id": "CoverageRange", | |
209 "type": "object", | |
210 "description": "Coverage data for a source range.", | |
211 "properties": [ | |
212 { "name": "startLineNumber", "type": "integer", "description
": "JavaScript script line number (0-based) for the range start." }, | |
213 { "name": "startColumnNumber", "type": "integer", "descripti
on": "JavaScript script column number (0-based) for the range start." }, | |
214 { "name": "endLineNumber", "type": "integer", "description":
"JavaScript script line number (0-based) for the range end." }, | |
215 { "name": "endColumnNumber", "type": "integer", "description
": "JavaScript script column number (0-based) for the range end." }, | |
216 { "name": "count", "type": "integer", "description": "Collec
ted execution count of the source range." } | |
217 ], | |
218 "experimental": "true" | |
219 }, | |
220 { "id": "FunctionCoverage", | |
221 "type": "object", | |
222 "description": "Coverage data for a JavaScript function.", | |
223 "properties": [ | |
224 { "name": "functionName", "type": "string", "description": "
JavaScript function name." }, | |
225 { "name": "ranges", "type": "array", "items": { "$ref": "Cov
erageRange" }, "description": "Source ranges inside the function with coverage d
ata." } | |
226 ], | |
227 "experimental": "true" | |
228 }, | |
229 { | |
230 "id": "ScriptCoverage", | |
231 "type": "object", | |
232 "description": "Coverage data for a JavaScript script.", | |
233 "properties": [ | |
234 { "name": "scriptId", "$ref": "ScriptId", "description": "Ja
vaScript script id." }, | |
235 { "name": "url", "type": "string", "description": "JavaScrip
t script name or url." }, | |
236 { "name": "functions", "type": "array", "items": { "$ref": "
FunctionCoverage" }, "description": "Functions contained in the script that has
coverage data." } | |
237 ], | |
238 "experimental": "true" | |
239 } | 207 } |
240 ], | 208 ], |
241 "commands": [ | 209 "commands": [ |
242 { | 210 { |
243 "name": "evaluate", | 211 "name": "evaluate", |
244 "parameters": [ | 212 "parameters": [ |
245 { "name": "expression", "type": "string", "description": "Ex
pression to evaluate." }, | 213 { "name": "expression", "type": "string", "description": "Ex
pression to evaluate." }, |
246 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, | 214 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, |
247 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, | 215 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, |
248 { "name": "silent", "type": "boolean", "optional": true, "de
scription": "In silent mode exceptions thrown during evaluation are not reported
and do not pause execution. Overrides <code>setPauseOnException</code> state."
}, | 216 { "name": "silent", "type": "boolean", "optional": true, "de
scription": "In silent mode exceptions thrown during evaluation are not reported
and do not pause execution. Overrides <code>setPauseOnException</code> state."
}, |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, | 336 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, |
369 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object which sho
uld be sent by value." }, | 337 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object which sho
uld be sent by value." }, |
370 { "name": "generatePreview", "type": "boolean", "optional":
true, "description": "Whether preview should be generated for the result." }, | 338 { "name": "generatePreview", "type": "boolean", "optional":
true, "description": "Whether preview should be generated for the result." }, |
371 { "name": "awaitPromise", "type": "boolean", "optional": tru
e, "description": "Whether execution should wait for promise to be resolved. If
the result of evaluation is not a Promise, it's considered to be an error." } | 339 { "name": "awaitPromise", "type": "boolean", "optional": tru
e, "description": "Whether execution should wait for promise to be resolved. If
the result of evaluation is not a Promise, it's considered to be an error." } |
372 ], | 340 ], |
373 "returns": [ | 341 "returns": [ |
374 { "name": "result", "$ref": "RemoteObject", "description": "
Run result." }, | 342 { "name": "result", "$ref": "RemoteObject", "description": "
Run result." }, |
375 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} | 343 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} |
376 ], | 344 ], |
377 "description": "Runs script with given id in a given context." | 345 "description": "Runs script with given id in a given context." |
378 }, | |
379 { | |
380 "name": "startPreciseCoverage", | |
381 "description": "Enable precise code coverage. Coverage data for
JavaScript executed before enabling precise code coverage may be incomplete. Ena
bling prevents running optimized code and resets execution counters.", | |
382 "experimental": true | |
383 }, | |
384 { | |
385 "name": "stopPreciseCoverage", | |
386 "description": "Disable precise code coverage. Disabling release
s unnecessary execution count records and allows executing optimized code.", | |
387 "experimental": true | |
388 }, | |
389 { | |
390 "name": "takePreciseCoverage", | |
391 "returns": [ | |
392 { "name": "result", "type": "array", "items": { "$ref": "Scr
iptCoverage" }, "description": "Coverage data for the current isolate." } | |
393 ], | |
394 "description": "Collect coverage data for the current isolate, a
nd resets execution counters. Precise code coverage needs to have started.", | |
395 "experimental": true | |
396 }, | |
397 { | |
398 "name": "getBestEffortCoverage", | |
399 "returns": [ | |
400 { "name": "result", "type": "array", "items": { "$ref": "Scr
iptCoverage" }, "description": "Coverage data for the current isolate." } | |
401 ], | |
402 "description": "Collect coverage data for the current isolate. T
he coverage data may be incomplete due to garbage collection.", | |
403 "experimental": true | |
404 } | 346 } |
405 ], | 347 ], |
406 "events": [ | 348 "events": [ |
407 { | 349 { |
408 "name": "executionContextCreated", | 350 "name": "executionContextCreated", |
409 "parameters": [ | 351 "parameters": [ |
410 { "name": "context", "$ref": "ExecutionContextDescription",
"description": "A newly created execution contex." } | 352 { "name": "context", "$ref": "ExecutionContextDescription",
"description": "A newly created execution contex." } |
411 ], | 353 ], |
412 "description": "Issued when new execution context is created." | 354 "description": "Issued when new execution context is created." |
413 }, | 355 }, |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
875 }, | 817 }, |
876 { | 818 { |
877 "id": "PositionTickInfo", | 819 "id": "PositionTickInfo", |
878 "type": "object", | 820 "type": "object", |
879 "experimental": true, | 821 "experimental": true, |
880 "description": "Specifies a number of samples attributed to a ce
rtain source position.", | 822 "description": "Specifies a number of samples attributed to a ce
rtain source position.", |
881 "properties": [ | 823 "properties": [ |
882 { "name": "line", "type": "integer", "description": "Source
line number (1-based)." }, | 824 { "name": "line", "type": "integer", "description": "Source
line number (1-based)." }, |
883 { "name": "ticks", "type": "integer", "description": "Number
of samples attributed to the source line." } | 825 { "name": "ticks", "type": "integer", "description": "Number
of samples attributed to the source line." } |
884 ] | 826 ] |
| 827 }, |
| 828 { "id": "CoverageRange", |
| 829 "type": "object", |
| 830 "description": "Coverage data for a source range.", |
| 831 "properties": [ |
| 832 { "name": "startLineNumber", "type": "integer", "description
": "JavaScript script line number (0-based) for the range start." }, |
| 833 { "name": "startColumnNumber", "type": "integer", "descripti
on": "JavaScript script column number (0-based) for the range start." }, |
| 834 { "name": "endLineNumber", "type": "integer", "description":
"JavaScript script line number (0-based) for the range end." }, |
| 835 { "name": "endColumnNumber", "type": "integer", "description
": "JavaScript script column number (0-based) for the range end." }, |
| 836 { "name": "count", "type": "integer", "description": "Collec
ted execution count of the source range." } |
| 837 ], |
| 838 "experimental": true |
| 839 }, |
| 840 { "id": "FunctionCoverage", |
| 841 "type": "object", |
| 842 "description": "Coverage data for a JavaScript function.", |
| 843 "properties": [ |
| 844 { "name": "functionName", "type": "string", "description": "
JavaScript function name." }, |
| 845 { "name": "ranges", "type": "array", "items": { "$ref": "Cov
erageRange" }, "description": "Source ranges inside the function with coverage d
ata." } |
| 846 ], |
| 847 "experimental": true |
| 848 }, |
| 849 { |
| 850 "id": "ScriptCoverage", |
| 851 "type": "object", |
| 852 "description": "Coverage data for a JavaScript script.", |
| 853 "properties": [ |
| 854 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "JavaScript script id." }, |
| 855 { "name": "url", "type": "string", "description": "JavaScrip
t script name or url." }, |
| 856 { "name": "functions", "type": "array", "items": { "$ref": "
FunctionCoverage" }, "description": "Functions contained in the script that has
coverage data." } |
| 857 ], |
| 858 "experimental": true |
885 } | 859 } |
886 ], | 860 ], |
887 "commands": [ | 861 "commands": [ |
888 { | 862 { |
889 "name": "enable" | 863 "name": "enable" |
890 }, | 864 }, |
891 { | 865 { |
892 "name": "disable" | 866 "name": "disable" |
893 }, | 867 }, |
894 { | 868 { |
895 "name": "setSamplingInterval", | 869 "name": "setSamplingInterval", |
896 "parameters": [ | 870 "parameters": [ |
897 { "name": "interval", "type": "integer", "description": "New
sampling interval in microseconds." } | 871 { "name": "interval", "type": "integer", "description": "New
sampling interval in microseconds." } |
898 ], | 872 ], |
899 "description": "Changes CPU profiler sampling interval. Must be
called before CPU profiles recording started." | 873 "description": "Changes CPU profiler sampling interval. Must be
called before CPU profiles recording started." |
900 }, | 874 }, |
901 { | 875 { |
902 "name": "start" | 876 "name": "start" |
903 }, | 877 }, |
904 { | 878 { |
905 "name": "stop", | 879 "name": "stop", |
906 "returns": [ | 880 "returns": [ |
907 { "name": "profile", "$ref": "Profile", "description": "Reco
rded profile." } | 881 { "name": "profile", "$ref": "Profile", "description": "Reco
rded profile." } |
908 ] | 882 ] |
| 883 }, |
| 884 { |
| 885 "name": "startPreciseCoverage", |
| 886 "description": "Enable precise code coverage. Coverage data for
JavaScript executed before enabling precise code coverage may be incomplete. Ena
bling prevents running optimized code and resets execution counters.", |
| 887 "experimental": true |
| 888 }, |
| 889 { |
| 890 "name": "stopPreciseCoverage", |
| 891 "description": "Disable precise code coverage. Disabling release
s unnecessary execution count records and allows executing optimized code.", |
| 892 "experimental": true |
| 893 }, |
| 894 { |
| 895 "name": "takePreciseCoverage", |
| 896 "returns": [ |
| 897 { "name": "result", "type": "array", "items": { "$ref": "Scr
iptCoverage" }, "description": "Coverage data for the current isolate." } |
| 898 ], |
| 899 "description": "Collect coverage data for the current isolate, a
nd resets execution counters. Precise code coverage needs to have started.", |
| 900 "experimental": true |
| 901 }, |
| 902 { |
| 903 "name": "getBestEffortCoverage", |
| 904 "returns": [ |
| 905 { "name": "result", "type": "array", "items": { "$ref": "Scr
iptCoverage" }, "description": "Coverage data for the current isolate." } |
| 906 ], |
| 907 "description": "Collect coverage data for the current isolate. T
he coverage data may be incomplete due to garbage collection.", |
| 908 "experimental": true |
909 } | 909 } |
910 ], | 910 ], |
911 "events": [ | 911 "events": [ |
912 { | 912 { |
913 "name": "consoleProfileStarted", | 913 "name": "consoleProfileStarted", |
914 "parameters": [ | 914 "parameters": [ |
915 { "name": "id", "type": "string" }, | 915 { "name": "id", "type": "string" }, |
916 { "name": "location", "$ref": "Debugger.Location", "descript
ion": "Location of console.profile()." }, | 916 { "name": "location", "$ref": "Debugger.Location", "descript
ion": "Location of console.profile()." }, |
917 { "name": "title", "type": "string", "optional": true, "desc
ription": "Profile title passed as an argument to console.profile()." } | 917 { "name": "title", "type": "string", "optional": true, "desc
ription": "Profile title passed as an argument to console.profile()." } |
918 ], | 918 ], |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1054 { | 1054 { |
1055 "name": "heapStatsUpdate", | 1055 "name": "heapStatsUpdate", |
1056 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", | 1056 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", |
1057 "parameters": [ | 1057 "parameters": [ |
1058 { "name": "statsUpdate", "type": "array", "items": { "type":
"integer" }, "description": "An array of triplets. Each triplet describes a fra
gment. The first integer is the fragment index, the second integer is a total co
unt of objects for the fragment, the third integer is a total size of the object
s for the fragment."} | 1058 { "name": "statsUpdate", "type": "array", "items": { "type":
"integer" }, "description": "An array of triplets. Each triplet describes a fra
gment. The first integer is the fragment index, the second integer is a total co
unt of objects for the fragment, the third integer is a total size of the object
s for the fragment."} |
1059 ] | 1059 ] |
1060 } | 1060 } |
1061 ] | 1061 ] |
1062 }] | 1062 }] |
1063 } | 1063 } |
OLD | NEW |