| OLD | NEW |
| 1 { | 1 { |
| 2 "version": { "major": "1", "minor": "1" }, | 2 "version": { "major": "1", "minor": "1" }, |
| 3 "domains": [{ | 3 "domains": [{ |
| 4 "domain": "Runtime", | 4 "domain": "Runtime", |
| 5 "description": "Runtime domain exposes JavaScript runtime by means of re
mote evaluation and mirror objects. Evaluation results are returned as mirror ob
ject that expose object type, string representation and unique identifier that c
an be used for further object reference. Original objects are maintained in memo
ry unless they are either explicitly released or are released along with the oth
er objects in their object group.", | 5 "description": "Runtime domain exposes JavaScript runtime by means of re
mote evaluation and mirror objects. Evaluation results are returned as mirror ob
ject that expose object type, string representation and unique identifier that c
an be used for further object reference. Original objects are maintained in memo
ry unless they are either explicitly released or are released along with the oth
er objects in their object group.", |
| 6 "types": [ | 6 "types": [ |
| 7 { | 7 { |
| 8 "id": "ScriptId", | 8 "id": "ScriptId", |
| 9 "type": "string", | 9 "type": "string", |
| 10 "description": "Unique script identifier." | 10 "description": "Unique script identifier." |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 ], | 719 ], |
| 720 "description": "Fired when the virtual machine stopped on breakp
oint or exception or any other stop criteria." | 720 "description": "Fired when the virtual machine stopped on breakp
oint or exception or any other stop criteria." |
| 721 }, | 721 }, |
| 722 { | 722 { |
| 723 "name": "resumed", | 723 "name": "resumed", |
| 724 "description": "Fired when the virtual machine resumed execution
." | 724 "description": "Fired when the virtual machine resumed execution
." |
| 725 } | 725 } |
| 726 ] | 726 ] |
| 727 }, | 727 }, |
| 728 { | 728 { |
| 729 "domain": "Console", |
| 730 "description": "Console domain defines methods and events for interactio
n with the JavaScript console. Console collects messages created by means of the
<a href='http://getfirebug.com/wiki/index.php/Console_API'>JavaScript Console A
PI</a>. One needs to enable this domain using <code>enable</code> command in ord
er to start receiving the console messages. Browser collects messages issued whi
le console domain is not enabled as well and reports them using <code>messageAdd
ed</code> notification upon enabling.", |
| 731 "dependencies": ["Runtime"], |
| 732 "types": [ |
| 733 { |
| 734 "id": "Timestamp", |
| 735 "type": "number", |
| 736 "description": "Number of seconds since epoch.", |
| 737 "hidden": true |
| 738 }, |
| 739 { |
| 740 "id": "ConsoleMessage", |
| 741 "type": "object", |
| 742 "description": "Console message.", |
| 743 "properties": [ |
| 744 { "name": "source", "type": "string", "enum": ["xml", "javas
cript", "network", "console-api", "storage", "appcache", "rendering", "security"
, "other", "deprecation"], "description": "Message source." }, |
| 745 { "name": "level", "type": "string", "enum": ["log", "warnin
g", "error", "debug", "info", "revokedError"], "description": "Message severity.
" }, |
| 746 { "name": "text", "type": "string", "description": "Message
text." }, |
| 747 { "name": "type", "type": "string", "optional": true, "enum"
: ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupC
ollapsed", "endGroup", "assert", "profile", "profileEnd"], "description": "Conso
le message type." }, |
| 748 { "name": "scriptId", "type": "string", "optional": true, "d
escription": "Script ID of the message origin." }, |
| 749 { "name": "url", "type": "string", "optional": true, "descri
ption": "URL of the message origin." }, |
| 750 { "name": "line", "type": "integer", "optional": true, "desc
ription": "Line number in the resource that generated this message." }, |
| 751 { "name": "column", "type": "integer", "optional": true, "de
scription": "Column number in the resource that generated this message." }, |
| 752 { "name": "repeatCount", "type": "integer", "optional": true
, "description": "Repeat count for repeated messages." }, |
| 753 { "name": "parameters", "type": "array", "items": { "$ref":
"Runtime.RemoteObject" }, "optional": true, "description": "Message parameters i
n case of the formatted message." }, |
| 754 { "name": "stack", "$ref": "Runtime.StackTrace", "optional":
true, "description": "JavaScript stack trace for assertions and error messages.
" }, |
| 755 { "name": "networkRequestId", "type": "string", "optional":
true, "description": "Identifier of the network request associated with this mes
sage." }, |
| 756 { "name": "timestamp", "$ref": "Timestamp", "description": "
Timestamp, when this message was fired.", "hidden": true }, |
| 757 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo
ntextId", "optional": true, "description": "Identifier of the context where this
message was created", "hidden": true }, |
| 758 { "name": "messageId", "type": "integer", "hidden": true, "o
ptional": true, "description": "Message id." }, |
| 759 { "name": "relatedMessageId", "type": "integer", "hidden": t
rue, "optional": true, "description": "Related message id." } |
| 760 ] |
| 761 } |
| 762 ], |
| 763 "commands": [ |
| 764 { |
| 765 "name": "enable", |
| 766 "description": "Enables console domain, sends the messages colle
cted so far to the client by means of the <code>messageAdded</code> notification
." |
| 767 }, |
| 768 { |
| 769 "name": "disable", |
| 770 "description": "Disables console domain, prevents further consol
e messages from being reported to the client." |
| 771 }, |
| 772 { |
| 773 "name": "clearMessages", |
| 774 "description": "Clears console messages collected in the browser
." |
| 775 } |
| 776 ], |
| 777 "events": [ |
| 778 { |
| 779 "name": "messageAdded", |
| 780 "parameters": [ |
| 781 { "name": "message", "$ref": "ConsoleMessage", "description"
: "Console message that has been added." } |
| 782 ], |
| 783 "description": "Issued when new console message is added." |
| 784 }, |
| 785 { |
| 786 "name": "messageRepeatCountUpdated", |
| 787 "parameters": [ |
| 788 { "name": "count", "type": "integer", "description": "New re
peat count value." }, |
| 789 { "name": "timestamp", "$ref": "Timestamp", "description": "
Timestamp of most recent message in batch.", "hidden": true } |
| 790 ], |
| 791 "description": "Is not issued. Will be gone in the future versio
ns of the protocol.", |
| 792 "deprecated": true |
| 793 }, |
| 794 { |
| 795 "name": "messagesCleared", |
| 796 "description": "Issued when console is cleared. This happens eit
her upon <code>clearMessages</code> command or after page navigation." |
| 797 } |
| 798 ] |
| 799 }, |
| 800 { |
| 729 "domain": "Profiler", | 801 "domain": "Profiler", |
| 730 "dependencies": ["Runtime", "Debugger"], | 802 "dependencies": ["Runtime", "Debugger"], |
| 731 "hidden": true, | 803 "hidden": true, |
| 732 "types": [ | 804 "types": [ |
| 733 { | 805 { |
| 734 "id": "CPUProfileNode", | 806 "id": "CPUProfileNode", |
| 735 "type": "object", | 807 "type": "object", |
| 736 "description": "CPU Profile node. Holds callsite information, ex
ecution statistics and child nodes.", | 808 "description": "CPU Profile node. Holds callsite information, ex
ecution statistics and child nodes.", |
| 737 "properties": [ | 809 "properties": [ |
| 738 { "name": "functionName", "type": "string", "description": "
Function name." }, | 810 { "name": "functionName", "type": "string", "description": "
Function name." }, |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 { | 1018 { |
| 947 "name": "heapStatsUpdate", | 1019 "name": "heapStatsUpdate", |
| 948 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", | 1020 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", |
| 949 "parameters": [ | 1021 "parameters": [ |
| 950 { "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."} | 1022 { "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."} |
| 951 ] | 1023 ] |
| 952 } | 1024 } |
| 953 ] | 1025 ] |
| 954 }] | 1026 }] |
| 955 } | 1027 } |
| OLD | NEW |