Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/js_protocol.json

Issue 2146063006: [DevTools] Move Timestamp to Runtime, measure it in milliseconds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2139543002
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/V8ConsoleMessage.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 "properties": [ 138 "properties": [
139 { "name": "text", "type": "string", "description": "Exceptio n text." }, 139 { "name": "text", "type": "string", "description": "Exceptio n text." },
140 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." }, 140 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." },
141 { "name": "scriptId", "type": "string", "optional": true, "d escription": "Script ID of the message origin." }, 141 { "name": "scriptId", "type": "string", "optional": true, "d escription": "Script ID of the message origin." },
142 { "name": "lineNumber", "type": "integer", "optional": true, "description": "Line number in the resource that generated this message. (0-bas ed)." }, 142 { "name": "lineNumber", "type": "integer", "optional": true, "description": "Line number in the resource that generated this message. (0-bas ed)." },
143 { "name": "columnNumber", "type": "integer", "optional": tru e, "description": "Column number in the resource that generated this message. (0 -based)." }, 143 { "name": "columnNumber", "type": "integer", "optional": tru e, "description": "Column number in the resource that generated this message. (0 -based)." },
144 { "name": "stack", "$ref": "StackTrace", "optional": true, " description": "JavaScript stack trace for assertions and error messages." } 144 { "name": "stack", "$ref": "StackTrace", "optional": true, " description": "JavaScript stack trace for assertions and error messages." }
145 ] 145 ]
146 }, 146 },
147 { 147 {
148 "id": "Timestamp",
149 "type": "number",
150 "description": "Number of milliseconds since epoch.",
151 "hidden": true
152 },
153 {
148 "id": "CallFrame", 154 "id": "CallFrame",
149 "type": "object", 155 "type": "object",
150 "description": "Stack entry for runtime errors and assertions.", 156 "description": "Stack entry for runtime errors and assertions.",
151 "properties": [ 157 "properties": [
152 { "name": "functionName", "type": "string", "description": " JavaScript function name." }, 158 { "name": "functionName", "type": "string", "description": " JavaScript function name." },
153 { "name": "scriptId", "$ref": "ScriptId", "description": "Ja vaScript script id." }, 159 { "name": "scriptId", "$ref": "ScriptId", "description": "Ja vaScript script id." },
154 { "name": "url", "type": "string", "description": "JavaScrip t script name or url." }, 160 { "name": "url", "type": "string", "description": "JavaScrip t script name or url." },
155 { "name": "lineNumber", "type": "integer", "description": "J avaScript script line number (0-based)." }, 161 { "name": "lineNumber", "type": "integer", "description": "J avaScript script line number (0-based)." },
156 { "name": "columnNumber", "type": "integer", "description": "JavaScript script column number (0-based)." } 162 { "name": "columnNumber", "type": "integer", "description": "JavaScript script column number (0-based)." }
157 ] 163 ]
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 }, 312 },
307 { 313 {
308 "name": "executionContextsCleared", 314 "name": "executionContextsCleared",
309 "description": "Issued when all executionContexts were cleared i n browser" 315 "description": "Issued when all executionContexts were cleared i n browser"
310 }, 316 },
311 { 317 {
312 "name": "exceptionThrown", 318 "name": "exceptionThrown",
313 "description": "Issued when exception was thrown and unhandled." , 319 "description": "Issued when exception was thrown and unhandled." ,
314 "parameters": [ 320 "parameters": [
315 { "name": "exceptionId", "type": "integer", "description": " Exception id." }, 321 { "name": "exceptionId", "type": "integer", "description": " Exception id." },
316 { "name": "timestamp", "type": "number", "description": "Num ber of milliseconds since epoch. TODO(dgozman): unify with Console.Timestamp" }, 322 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp of the exception." },
317 { "name": "details", "$ref": "ExceptionDetails" }, 323 { "name": "details", "$ref": "ExceptionDetails" },
318 { "name": "exception", "$ref": "RemoteObject", "optional": t rue, "description": "Exception object." }, 324 { "name": "exception", "$ref": "RemoteObject", "optional": t rue, "description": "Exception object." },
319 { "name": "executionContextId", "$ref": "ExecutionContextId" , "optional": true, "description": "Identifier of the context where exception ha ppened." } 325 { "name": "executionContextId", "$ref": "ExecutionContextId" , "optional": true, "description": "Identifier of the context where exception ha ppened." }
320 ], 326 ],
321 "hidden": true 327 "hidden": true
322 }, 328 },
323 { 329 {
324 "name": "exceptionRevoked", 330 "name": "exceptionRevoked",
325 "description": "Issued when unhandled exception was revoked.", 331 "description": "Issued when unhandled exception was revoked.",
326 "parameters": [ 332 "parameters": [
327 { "name": "timestamp", "type": "number", "description": "Num ber of milliseconds since epoch. TODO(dgozman): unify with Console.Timestamp" },
328 { "name": "message", "type": "string", "description": "Messa ge describing why exception was revoked." }, 333 { "name": "message", "type": "string", "description": "Messa ge describing why exception was revoked." },
329 { "name": "exceptionId", "type": "integer", "description": " The id of revoked exception, as reported in <code>exceptionUnhandled</code>." } 334 { "name": "exceptionId", "type": "integer", "description": " The id of revoked exception, as reported in <code>exceptionUnhandled</code>." }
330 ], 335 ],
331 "hidden": true 336 "hidden": true
332 }, 337 },
333 { 338 {
334 "name": "consoleAPICalled", 339 "name": "consoleAPICalled",
335 "description": "Issued when console API was called.", 340 "description": "Issued when console API was called.",
336 "parameters": [ 341 "parameters": [
337 { "name": "type", "type": "string", "enum": ["log", "debug", "info", "error", "warning", "dir", "dirxml", "table", "trace", "clear", "startG roup", "startGroupCollapsed", "endGroup", "assert", "profile", "profileEnd"], "d escription": "Type of the call." }, 342 { "name": "type", "type": "string", "enum": ["log", "debug", "info", "error", "warning", "dir", "dirxml", "table", "trace", "clear", "startG roup", "startGroupCollapsed", "endGroup", "assert", "profile", "profileEnd"], "d escription": "Type of the call." },
338 { "name": "args", "type": "array", "items": { "$ref": "Remot eObject" }, "description": "Call arguments." }, 343 { "name": "args", "type": "array", "items": { "$ref": "Remot eObject" }, "description": "Call arguments." },
339 { "name": "executionContextId", "$ref": "ExecutionContextId" , "description": "Identifier of the context where the call was made." }, 344 { "name": "executionContextId", "$ref": "ExecutionContextId" , "description": "Identifier of the context where the call was made." },
340 { "name": "timestamp", "type": "number", "description": "Num ber of milliseconds since epoch. TODO(dgozman): unify with Console.Timestamp" }, 345 { "name": "timestamp", "$ref": "Timestamp", "description": " Call timestamp." },
341 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr ue, "description": "Stack trace captured when the call was made." } 346 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr ue, "description": "Stack trace captured when the call was made." }
342 ], 347 ],
343 "hidden": true 348 "hidden": true
344 }, 349 },
345 { 350 {
346 "name": "inspectRequested", 351 "name": "inspectRequested",
347 "parameters": [ 352 "parameters": [
348 { "name": "object", "$ref": "RemoteObject" }, 353 { "name": "object", "$ref": "RemoteObject" },
349 { "name": "hints", "type": "object" } 354 { "name": "hints", "type": "object" }
350 ], 355 ],
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 "description": "Fired when the virtual machine resumed execution ." 718 "description": "Fired when the virtual machine resumed execution ."
714 } 719 }
715 ] 720 ]
716 }, 721 },
717 { 722 {
718 "domain": "Console", 723 "domain": "Console",
719 "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.", 724 "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.",
720 "dependencies": ["Runtime"], 725 "dependencies": ["Runtime"],
721 "types": [ 726 "types": [
722 { 727 {
723 "id": "Timestamp",
724 "type": "number",
725 "description": "Number of seconds since epoch.",
726 "hidden": true
727 },
728 {
729 "id": "ConsoleMessage", 728 "id": "ConsoleMessage",
730 "type": "object", 729 "type": "object",
731 "description": "Console message.", 730 "description": "Console message.",
732 "properties": [ 731 "properties": [
733 { "name": "source", "type": "string", "enum": ["xml", "javas cript", "network", "console-api", "storage", "appcache", "rendering", "security" , "other", "deprecation", "worker"], "description": "Message source." }, 732 { "name": "source", "type": "string", "enum": ["xml", "javas cript", "network", "console-api", "storage", "appcache", "rendering", "security" , "other", "deprecation", "worker"], "description": "Message source." },
734 { "name": "level", "type": "string", "enum": ["log", "warnin g", "error", "debug", "info"], "description": "Message severity." }, 733 { "name": "level", "type": "string", "enum": ["log", "warnin g", "error", "debug", "info"], "description": "Message severity." },
735 { "name": "text", "type": "string", "description": "Message text." }, 734 { "name": "text", "type": "string", "description": "Message text." },
736 { "name": "type", "type": "string", "optional": true, "enum" : ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupC ollapsed", "endGroup", "assert", "profile", "profileEnd"], "description": "Never present. Use Runtime.consoleAPICalled instead." }, 735 { "name": "type", "type": "string", "optional": true, "enum" : ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupC ollapsed", "endGroup", "assert", "profile", "profileEnd"], "description": "Never present. Use Runtime.consoleAPICalled instead." },
737 { "name": "scriptId", "type": "string", "optional": true, "d escription": "Script ID of the message origin." }, 736 { "name": "scriptId", "type": "string", "optional": true, "d escription": "Script ID of the message origin." },
738 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." }, 737 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." },
739 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." }, 738 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." },
740 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." }, 739 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." },
741 { "name": "repeatCount", "type": "integer", "optional": true , "description": "Repeat count for repeated messages." }, 740 { "name": "repeatCount", "type": "integer", "optional": true , "description": "Repeat count for repeated messages." },
742 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Never present. Use R untime.consoleAPICalled instead." }, 741 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Never present. Use R untime.consoleAPICalled instead." },
743 { "name": "stack", "$ref": "Runtime.StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages. " }, 742 { "name": "stack", "$ref": "Runtime.StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages. " },
744 { "name": "networkRequestId", "type": "string", "optional": true, "description": "Identifier of the network request associated with this mes sage." }, 743 { "name": "networkRequestId", "type": "string", "optional": true, "description": "Identifier of the network request associated with this mes sage." },
745 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp, when this message was fired.", "hidden": true }, 744 { "name": "timestamp", "$ref": "Runtime.Timestamp", "descrip tion": "Timestamp, when this message was fired.", "hidden": true },
746 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "optional": true, "description": "Identifier of the context where this message was created", "hidden": true }, 745 { "name": "executionContextId", "$ref": "Runtime.ExecutionCo ntextId", "optional": true, "description": "Identifier of the context where this message was created", "hidden": true },
747 { "name": "workerId", "type": "string", "optional": true, "d escription": "Identifier of the worker this message came from.", "hidden": true } 746 { "name": "workerId", "type": "string", "optional": true, "d escription": "Identifier of the worker this message came from.", "hidden": true }
748 ] 747 ]
749 } 748 }
750 ], 749 ],
751 "commands": [ 750 "commands": [
752 { 751 {
753 "name": "enable", 752 "name": "enable",
754 "description": "Enables console domain, sends the messages colle cted so far to the client by means of the <code>messageAdded</code> notification ." 753 "description": "Enables console domain, sends the messages colle cted so far to the client by means of the <code>messageAdded</code> notification ."
755 }, 754 },
(...skipping 11 matching lines...) Expand all
767 "name": "messageAdded", 766 "name": "messageAdded",
768 "parameters": [ 767 "parameters": [
769 { "name": "message", "$ref": "ConsoleMessage", "description" : "Console message that has been added." } 768 { "name": "message", "$ref": "ConsoleMessage", "description" : "Console message that has been added." }
770 ], 769 ],
771 "description": "Issued when new console message is added." 770 "description": "Issued when new console message is added."
772 }, 771 },
773 { 772 {
774 "name": "messageRepeatCountUpdated", 773 "name": "messageRepeatCountUpdated",
775 "parameters": [ 774 "parameters": [
776 { "name": "count", "type": "integer", "description": "New re peat count value." }, 775 { "name": "count", "type": "integer", "description": "New re peat count value." },
777 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp of most recent message in batch.", "hidden": true } 776 { "name": "timestamp", "$ref": "Runtime.Timestamp", "descrip tion": "Timestamp of most recent message in batch.", "hidden": true }
778 ], 777 ],
779 "description": "Is not issued. Will be gone in the future versio ns of the protocol.", 778 "description": "Is not issued. Will be gone in the future versio ns of the protocol.",
780 "deprecated": true 779 "deprecated": true
781 }, 780 },
782 { 781 {
783 "name": "messagesCleared", 782 "name": "messagesCleared",
784 "description": "Not issued.", 783 "description": "Not issued.",
785 "deprecated": true 784 "deprecated": true
786 } 785 }
787 ] 786 ]
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 { 1004 {
1006 "name": "heapStatsUpdate", 1005 "name": "heapStatsUpdate",
1007 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments", 1006 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments",
1008 "parameters": [ 1007 "parameters": [
1009 { "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."} 1008 { "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."}
1010 ] 1009 ]
1011 } 1010 }
1012 ] 1011 ]
1013 }] 1012 }]
1014 } 1013 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/V8ConsoleMessage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698