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

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

Issue 254613002: DevTools: add Tracing agent on back-end (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed a stray call to TracingAgent.enable() Created 6 years, 8 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
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePanel.js ('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": "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 2755 matching lines...) Expand 10 before | Expand all | Expand 10 after
2766 { "name": "thread", "type": "string", "optional": true, "hid den": true, "description": "If present, identifies the thread that produced the event." }, 2766 { "name": "thread", "type": "string", "optional": true, "hid den": true, "description": "If present, identifies the thread that produced the event." },
2767 { "name": "stackTrace", "$ref": "Console.StackTrace", "optio nal": true, "hidden": true, "description": "Stack trace." }, 2767 { "name": "stackTrace", "$ref": "Console.StackTrace", "optio nal": true, "hidden": true, "description": "Stack trace." },
2768 { "name": "frameId", "type": "string", "optional": true, "hi dden": true, "description": "Unique identifier of the frame within the page that the event relates to." } 2768 { "name": "frameId", "type": "string", "optional": true, "hi dden": true, "description": "Unique identifier of the frame within the page that the event relates to." }
2769 ], 2769 ],
2770 "description": "Timeline record contains information about the r ecorded activity." 2770 "description": "Timeline record contains information about the r ecorded activity."
2771 } 2771 }
2772 ], 2772 ],
2773 "commands": [ 2773 "commands": [
2774 { 2774 {
2775 "name": "enable", 2775 "name": "enable",
2776 "description": "Enables timeline. After this call, timeline can be started from within the page (for example upon console.timeline).", 2776 "description": "Enables timeline. After this call, timeline can be started from within the page (for example upon console.timeline)."
2777 "parameters": [
2778 { "name": "traceEventCategoryFilter", "optional": true, "typ e": "string", "description": "If set, the timeline agent will automatically star t tracing with the specified category filter when timeline is started." }
2779 ]
2780 }, 2777 },
2781 { 2778 {
2782 "name": "disable", 2779 "name": "disable",
2783 "description": "Disables timeline." 2780 "description": "Disables timeline."
2784 }, 2781 },
2785 { 2782 {
2786 "name": "start", 2783 "name": "start",
2787 "parameters": [ 2784 "parameters": [
2788 { "name": "maxCallStackDepth", "optional": true, "type": "in teger", "description": "Samples JavaScript stack traces up to <code>maxCallStack Depth</code>, defaults to 5." }, 2785 { "name": "maxCallStackDepth", "optional": true, "type": "in teger", "description": "Samples JavaScript stack traces up to <code>maxCallStack Depth</code>, defaults to 5." },
2789 { "name": "bufferEvents", "optional": true, "type": "boolean ", "hidden": true, "description": "Whether instrumentation events should be buff ered and returned upon <code>stop</code> call." }, 2786 { "name": "bufferEvents", "optional": true, "type": "boolean ", "hidden": true, "description": "Whether instrumentation events should be buff ered and returned upon <code>stop</code> call." },
(...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after
4025 } 4022 }
4026 ] 4023 ]
4027 }, 4024 },
4028 { 4025 {
4029 "domain": "Tracing", 4026 "domain": "Tracing",
4030 "hidden": true, 4027 "hidden": true,
4031 "commands": [ 4028 "commands": [
4032 { 4029 {
4033 "name": "start", 4030 "name": "start",
4034 "description": "Start trace events collection.", 4031 "description": "Start trace events collection.",
4035 "async": true,
4036 "parameters": [ 4032 "parameters": [
4037 { "name": "categories", "type": "string", "description": "Ca tegory/tag filter" }, 4033 { "name": "categories", "type": "string", "description": "Ca tegory/tag filter" },
4038 { "name": "options", "type": "string", "description": "Traci ng options" }, 4034 { "name": "options", "type": "string", "description": "Traci ng options" },
4039 { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage event s at this interval, specified in milliseconds" } 4035 { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage event s at this interval, specified in milliseconds" }
4040 ], 4036 ],
4041 "handlers": ["browser", "frontend"] 4037 "returns": [
4038 { "name": "sessionId", "type": "string", "description": "A s ystem-unique identifier of the tracing session that allows associating of some o f the trace events with the inspected page" }
4039 ],
4040 "handlers": ["browser", "renderer", "frontend"]
4042 }, 4041 },
4043 { 4042 {
4044 "name": "end", 4043 "name": "end",
4045 "description": "Stop trace events collection.", 4044 "description": "Stop trace events collection.",
4046 "handlers": ["browser", "frontend"] 4045 "handlers": ["browser", "frontend"]
4047 } 4046 }
4048 ], 4047 ],
4049 "events": [ 4048 "events": [
4050 { 4049 {
4051 "name": "dataCollected", 4050 "name": "dataCollected",
4052 "parameters": [ 4051 "parameters": [
4053 { "name": "value", "type": "array", "items": { "type": "obje ct" } } 4052 { "name": "value", "type": "array", "items": { "type": "obje ct" } }
4054 ], 4053 ],
4054 "description": "Contains an bucket of collected trace events.",
4055 "handlers": ["browser", "frontend"] 4055 "handlers": ["browser", "frontend"]
4056 }, 4056 },
4057 { 4057 {
4058 "name": "tracingComplete", 4058 "name": "tracingComplete",
4059 "description": "Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.",
4059 "handlers": ["browser", "frontend"] 4060 "handlers": ["browser", "frontend"]
4060 }, 4061 },
4061 { 4062 {
4062 "name": "bufferUsage", 4063 "name": "bufferUsage",
4063 "parameters": [ 4064 "parameters": [
4064 { "name": "value", "type": "number", "description": "A numbe r in range [0..1] that indicates the used size of event buffer as a fraction of its total size." } 4065 { "name": "value", "type": "number", "description": "A numbe r in range [0..1] that indicates the used size of event buffer as a fraction of its total size." }
4065 ], 4066 ],
4066 "handlers": ["browser", "frontend"] 4067 "handlers": ["browser", "frontend"]
4067 } 4068 }
4068 ] 4069 ]
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
4109 { 4110 {
4110 "name": "dataAvailable", 4111 "name": "dataAvailable",
4111 "parameters": [ 4112 "parameters": [
4112 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." } 4113 {"name": "value", "type": "array", "items": { "$ref": "Power Event" }, "description": "List of power events." }
4113 ], 4114 ],
4114 "handlers": ["browser", "frontend"] 4115 "handlers": ["browser", "frontend"]
4115 } 4116 }
4116 ] 4117 ]
4117 }] 4118 }]
4118 } 4119 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698