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

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: Review comments addressed. 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": "1" }, 2 "version": { "major": "1", "minor": "1" },
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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 "hidden": true 803 "hidden": true
804 }, 804 },
805 { 805 {
806 "id": "ConsoleMessage", 806 "id": "ConsoleMessage",
807 "type": "object", 807 "type": "object",
808 "description": "Console message.", 808 "description": "Console message.",
809 "properties": [ 809 "properties": [
810 { "name": "source", "type": "string", "enum": ["xml", "javas cript", "network", "console-api", "storage", "appcache", "rendering", "css", "se curity", "other", "deprecation"], "description": "Message source." }, 810 { "name": "source", "type": "string", "enum": ["xml", "javas cript", "network", "console-api", "storage", "appcache", "rendering", "css", "se curity", "other", "deprecation"], "description": "Message source." },
811 { "name": "level", "type": "string", "enum": ["log", "warnin g", "error", "debug"], "description": "Message severity." }, 811 { "name": "level", "type": "string", "enum": ["log", "warnin g", "error", "debug"], "description": "Message severity." },
812 { "name": "text", "type": "string", "description": "Message text." }, 812 { "name": "text", "type": "string", "description": "Message text." },
813 { "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." }, 813 { "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." },
814 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." }, 814 { "name": "url", "type": "string", "optional": true, "descri ption": "URL of the message origin." },
815 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." }, 815 { "name": "line", "type": "integer", "optional": true, "desc ription": "Line number in the resource that generated this message." },
816 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." }, 816 { "name": "column", "type": "integer", "optional": true, "de scription": "Column number in the resource that generated this message." },
817 { "name": "repeatCount", "type": "integer", "optional": true , "description": "Repeat count for repeated messages." }, 817 { "name": "repeatCount", "type": "integer", "optional": true , "description": "Repeat count for repeated messages." },
818 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters i n case of the formatted message." }, 818 { "name": "parameters", "type": "array", "items": { "$ref": "Runtime.RemoteObject" }, "optional": true, "description": "Message parameters i n case of the formatted message." },
819 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr ue, "description": "JavaScript stack trace for assertions and error messages." } , 819 { "name": "stackTrace", "$ref": "StackTrace", "optional": tr ue, "description": "JavaScript stack trace for assertions and error messages." } ,
820 { "name": "networkRequestId", "$ref": "Network.RequestId", " optional": true, "description": "Identifier of the network request associated wi th this message." }, 820 { "name": "networkRequestId", "$ref": "Network.RequestId", " optional": true, "description": "Identifier of the network request associated wi th this message." },
821 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp, when this message was fired.", "hidden": true } 821 { "name": "timestamp", "$ref": "Timestamp", "description": " Timestamp, when this message was fired.", "hidden": true }
822 ] 822 ]
823 }, 823 },
(...skipping 1986 matching lines...) Expand 10 before | Expand all | Expand 10 after
2810 { "name": "children", "type": "array", "optional": true, "it ems": { "$ref": "TimelineEvent" }, "description": "Nested records." }, 2810 { "name": "children", "type": "array", "optional": true, "it ems": { "$ref": "TimelineEvent" }, "description": "Nested records." },
2811 { "name": "counters", "$ref": "DOMCounters", "optional": tru e, "hidden": true, "description": "Current values of DOM counters." }, 2811 { "name": "counters", "$ref": "DOMCounters", "optional": tru e, "hidden": true, "description": "Current values of DOM counters." },
2812 { "name": "usedHeapSize", "type": "integer", "optional": tru e, "hidden": true, "description": "Current size of JS heap." }, 2812 { "name": "usedHeapSize", "type": "integer", "optional": tru e, "hidden": true, "description": "Current size of JS heap." },
2813 { "name": "nativeHeapStatistics", "type": "object", "optiona l": true, "hidden": true, "description": "Native heap statistics." } 2813 { "name": "nativeHeapStatistics", "type": "object", "optiona l": true, "hidden": true, "description": "Native heap statistics." }
2814 ], 2814 ],
2815 "description": "Timeline record contains information about the r ecorded activity." 2815 "description": "Timeline record contains information about the r ecorded activity."
2816 } 2816 }
2817 ], 2817 ],
2818 "commands": [ 2818 "commands": [
2819 { 2819 {
2820 "name": "enable",
2821 "description": "Enables timeline. After this call, timeline can be started from within the page (for example upon console.timeline)."
2822 },
2823 {
2824 "name": "disable",
2825 "description": "Disables timeline."
2826 },
2827 {
2820 "name": "start", 2828 "name": "start",
2821 "parameters": [ 2829 "parameters": [
2822 { "name": "maxCallStackDepth", "optional": true, "type": "in teger", "description": "Samples JavaScript stack traces up to <code>maxCallStack Depth</code>, defaults to 5." }, 2830 { "name": "maxCallStackDepth", "optional": true, "type": "in teger", "description": "Samples JavaScript stack traces up to <code>maxCallStack Depth</code>, defaults to 5." },
2823 { "name": "includeDomCounters", "optional": true, "type": "b oolean", "hidden": true, "description": "Whether DOM counters data should be inc luded into timeline events." }, 2831 { "name": "includeDomCounters", "optional": true, "type": "b oolean", "hidden": true, "description": "Whether DOM counters data should be inc luded into timeline events." },
2824 { "name": "includeNativeMemoryStatistics", "optional": true, "type": "boolean", "hidden": true, "description": "Whether native memory usage statistics should be reported as part of timeline events." } 2832 { "name": "includeNativeMemoryStatistics", "optional": true, "type": "boolean", "hidden": true, "description": "Whether native memory usage statistics should be reported as part of timeline events." }
2825 2833
2826 ], 2834 ],
2827 "description": "Starts capturing instrumentation events." 2835 "description": "Starts capturing instrumentation events."
2828 }, 2836 },
2829 { 2837 {
2830 "name": "stop", 2838 "name": "stop",
2831 "description": "Stops capturing instrumentation events." 2839 "description": "Stops capturing instrumentation events."
2832 } 2840 }
2833 ], 2841 ],
2834 "events": [ 2842 "events": [
2835 { 2843 {
2836 "name": "eventRecorded", 2844 "name": "eventRecorded",
2837 "parameters": [ 2845 "parameters": [
2838 { "name": "record", "$ref": "TimelineEvent", "description": "Timeline event record data." } 2846 { "name": "record", "$ref": "TimelineEvent", "description": "Timeline event record data." }
2839 ], 2847 ],
2840 "description": "Fired for every instrumentation event while time line is started." 2848 "description": "Fired for every instrumentation event while time line is started."
2849 },
2850 {
2851 "name": "started",
2852 "parameters": [
2853 { "name": "consoleTimeline", "type": "boolean", "optional": true, "description": "If specified, identifies that timeline was started using c onsole.timeline() call." }
2854 ],
2855 "description": "Fired when timeline is started.",
2856 "hidden": true
2857 },
2858 {
2859 "name": "stopped",
2860 "parameters": [
2861 { "name": "consoleTimeline", "type": "boolean", "optional": true, "description": "If specified, identifies that timeline was started using c onsole.timeline() call." }
2862 ],
2863 "description": "Fired when timeline is stopped.",
2864 "hidden": true
2841 } 2865 }
2842 ] 2866 ]
2843 }, 2867 },
2844 { 2868 {
2845 "domain": "Debugger", 2869 "domain": "Debugger",
2846 "description": "Debugger domain exposes JavaScript debugging capabilitie s. It allows setting and removing breakpoints, stepping through execution, explo ring stack traces, etc.", 2870 "description": "Debugger domain exposes JavaScript debugging capabilitie s. It allows setting and removing breakpoints, stepping through execution, explo ring stack traces, etc.",
2847 "types": [ 2871 "types": [
2848 { 2872 {
2849 "id": "BreakpointId", 2873 "id": "BreakpointId",
2850 "type": "string", 2874 "type": "string",
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
3967 "parameters": [ 3991 "parameters": [
3968 { "name": "value", "type": "array", "items": { "type": "obje ct" } } 3992 { "name": "value", "type": "array", "items": { "type": "obje ct" } }
3969 ] 3993 ]
3970 }, 3994 },
3971 { 3995 {
3972 "name": "tracingComplete" 3996 "name": "tracingComplete"
3973 } 3997 }
3974 ] 3998 ]
3975 }] 3999 }]
3976 } 4000 }
OLDNEW
« Source/core/inspector/InspectorConsoleAgent.cpp ('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