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

Side by Side Diff: Source/devtools/protocol.json

Issue 24027002: DevTools: implement console.timeline/timelineEnd. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: w/ basic test Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "0" }, 2 "version": { "major": "1", "minor": "0" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Inspector", 4 "domain": "Inspector",
5 "hidden": true, 5 "hidden": true,
6 "types": [], 6 "types": [],
7 "commands": [ 7 "commands": [
8 { 8 {
9 "name": "enable", 9 "name": "enable",
10 "description": "Enables inspector domain notifications." 10 "description": "Enables inspector domain notifications."
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 "description": "Number of seconds since epoch." 773 "description": "Number of seconds since epoch."
774 }, 774 },
775 { 775 {
776 "id": "ConsoleMessage", 776 "id": "ConsoleMessage",
777 "type": "object", 777 "type": "object",
778 "description": "Console message.", 778 "description": "Console message.",
779 "properties": [ 779 "properties": [
780 { "name": "source", "type": "string", "enum": ["xml", "javas cript", "network", "console-api", "storage", "appcache", "rendering", "css", "se curity", "other", "deprecation"], "description": "Message source." }, 780 { "name": "source", "type": "string", "enum": ["xml", "javas cript", "network", "console-api", "storage", "appcache", "rendering", "css", "se curity", "other", "deprecation"], "description": "Message source." },
781 { "name": "level", "type": "string", "enum": ["log", "warnin g", "error", "debug"], "description": "Message severity." }, 781 { "name": "level", "type": "string", "enum": ["log", "warnin g", "error", "debug"], "description": "Message severity." },
782 { "name": "text", "type": "string", "description": "Message text." }, 782 { "name": "text", "type": "string", "description": "Message text." },
783 { "name": "type", "type": "string", "optional": true, "enum" : ["log", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupC ollapsed", "endGroup", "assert", "timing", "profile", "profileEnd"], "descriptio n": "Console message type." }, 783 { "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." },
784 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." }, 784 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." },
785 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." }, 785 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." },
786 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." }, 786 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." },
787 { "name": "repeatCount", "type": "integer", "optional": true , "description": "Repeat count for repeated messages." }, 787 { "name": "repeatCount", "type": "integer", "optional": true , "description": "Repeat count for repeated messages." },
788 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters i n case of the formatted message." }, 788 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters i n case of the formatted message." },
789 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr ue, "description": "JavaScript stack trace for assertions and error messages." } , 789 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr ue, "description": "JavaScript stack trace for assertions and error messages." } ,
790 { "name": "networkRequestId", "$ref": "Network.RequestId", " optional": true, "description": "Identifier of the network request associated wi th this message." }, 790 { "name": "networkRequestId", "$ref": "Network.RequestId", " optional": true, "description": "Identifier of the network request associated wi th this message." },
791 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp, when this message was fired.", "hidden": true } 791 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp, when this message was fired.", "hidden": true }
792 ] 792 ]
793 }, 793 },
(...skipping 1983 matching lines...) Expand 10 before | Expand all | Expand 10 after
2777 { "name": "children", "type": "array", "optional": true, "it ems": { "$ref": "TimelineEvent" }, "description": "Nested records." }, 2777 { "name": "children", "type": "array", "optional": true, "it ems": { "$ref": "TimelineEvent" }, "description": "Nested records." },
2778 { "name": "counters", "$ref": "DOMCounters", "optional": tru e, "hidden": true, "description": "Current values of DOM counters." }, 2778 { "name": "counters", "$ref": "DOMCounters", "optional": tru e, "hidden": true, "description": "Current values of DOM counters." },
2779 { "name": "usedHeapSize", "type": "integer", "optional": tru e, "hidden": true, "description": "Current size of JS heap." }, 2779 { "name": "usedHeapSize", "type": "integer", "optional": tru e, "hidden": true, "description": "Current size of JS heap." },
2780 { "name": "nativeHeapStatistics", "type": "object", "optiona l": true, "hidden": true, "description": "Native heap statistics." } 2780 { "name": "nativeHeapStatistics", "type": "object", "optiona l": true, "hidden": true, "description": "Native heap statistics." }
2781 ], 2781 ],
2782 "description": "Timeline record contains information about the r ecorded activity." 2782 "description": "Timeline record contains information about the r ecorded activity."
2783 } 2783 }
2784 ], 2784 ],
2785 "commands": [ 2785 "commands": [
2786 { 2786 {
2787 "name": "enable",
2788 "description": "Enables timeline. After this call, timeline can be started from within the page (for example upon console.timeline)."
2789 },
2790 {
2791 "name": "disable",
2792 "description": "Disables timeline."
2793 },
2794 {
2787 "name": "start", 2795 "name": "start",
2788 "parameters": [ 2796 "parameters": [
2789 { "name": "maxCallStackDepth", "optional": true, "type": "in teger", "description": "Samples JavaScript stack traces up to <code>maxCallStack Depth</code>, defaults to 5." }, 2797 { "name": "maxCallStackDepth", "optional": true, "type": "in teger", "description": "Samples JavaScript stack traces up to <code>maxCallStack Depth</code>, defaults to 5." },
2790 { "name": "includeDomCounters", "optional": true, "type": "b oolean", "hidden": true, "description": "Whether DOM counters data should be inc luded into timeline events." }, 2798 { "name": "includeDomCounters", "optional": true, "type": "b oolean", "hidden": true, "description": "Whether DOM counters data should be inc luded into timeline events." },
2791 { "name": "includeNativeMemoryStatistics", "optional": true, "type": "boolean", "hidden": true, "description": "Whether native memory usage statistics should be reported as part of timeline events." } 2799 { "name": "includeNativeMemoryStatistics", "optional": true, "type": "boolean", "hidden": true, "description": "Whether native memory usage statistics should be reported as part of timeline events." }
2792 2800
2793 ], 2801 ],
2794 "description": "Starts capturing instrumentation events." 2802 "description": "Starts capturing instrumentation events."
2795 }, 2803 },
2796 { 2804 {
2797 "name": "stop", 2805 "name": "stop",
2798 "description": "Stops capturing instrumentation events." 2806 "description": "Stops capturing instrumentation events."
2799 } 2807 }
2800 ], 2808 ],
2801 "events": [ 2809 "events": [
2802 { 2810 {
2803 "name": "eventRecorded", 2811 "name": "eventRecorded",
2804 "parameters": [ 2812 "parameters": [
2805 { "name": "record", "$ref": "TimelineEvent", "description": "Timeline event record data." } 2813 { "name": "record", "$ref": "TimelineEvent", "description": "Timeline event record data." }
2806 ], 2814 ],
2807 "description": "Fired for every instrumentation event while time line is started." 2815 "description": "Fired for every instrumentation event while time line is started."
2816 },
2817 {
2818 "name": "started",
2819 "parameters": [
2820 { "name": "consoleTimeline", "type": "boolean", "optional": true, "description": "If specified, identifies that timeline was started using c onsole.timeline() call." }
2821 ],
2822 "description": "Fired when timeline is started.",
2823 "hidden": true
2824 },
2825 {
2826 "name": "stopped",
2827 "parameters": [
2828 { "name": "consoleTimeline", "type": "boolean", "optional": true, "description": "If specified, identifies that timeline was started using c onsole.timeline() call." }
2829 ],
2830 "description": "Fired when timeline is stopped.",
2831 "hidden": true
2808 } 2832 }
2809 ] 2833 ]
2810 }, 2834 },
2811 { 2835 {
2812 "domain": "Debugger", 2836 "domain": "Debugger",
2813 "description": "Debugger domain exposes JavaScript debugging capabilitie s. It allows setting and removing breakpoints, stepping through execution, explo ring stack traces, etc.", 2837 "description": "Debugger domain exposes JavaScript debugging capabilitie s. It allows setting and removing breakpoints, stepping through execution, explo ring stack traces, etc.",
2814 "types": [ 2838 "types": [
2815 { 2839 {
2816 "id": "BreakpointId", 2840 "id": "BreakpointId",
2817 "type": "string", 2841 "type": "string",
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
3932 "parameters": [ 3956 "parameters": [
3933 { "name": "value", "type": "array", "items": { "type": "obje ct" } } 3957 { "name": "value", "type": "array", "items": { "type": "obje ct" } }
3934 ] 3958 ]
3935 }, 3959 },
3936 { 3960 {
3937 "name": "tracingComplete" 3961 "name": "tracingComplete"
3938 } 3962 }
3939 ] 3963 ]
3940 }] 3964 }]
3941 } 3965 }
OLDNEW
« Source/devtools/front_end/TimelineManager.js ('K') | « Source/devtools/front_end/TimelinePanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698