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

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

Issue 1307863003: Add support for returning traces as streams in DevTools protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: extracted test to a separate CL, moved IO from browser_protocol.json to protocol.json Created 5 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
« no previous file with comments | « Source/devtools/front_end/sdk/TracingManager.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 3236 matching lines...) Expand 10 before | Expand all | Expand 10 after
3247 { 3247 {
3248 "name": "layoutEditorChange", 3248 "name": "layoutEditorChange",
3249 "parameters": [ 3249 "parameters": [
3250 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the stylesheet where the modification occurred."}, 3250 { "name": "styleSheetId", "$ref": "StyleSheetId", "descripti on": "Identifier of the stylesheet where the modification occurred."},
3251 { "name": "changeRange", "$ref": "SourceRange", "description ": "Range where the modification occurred."} 3251 { "name": "changeRange", "$ref": "SourceRange", "description ": "Range where the modification occurred."}
3252 ] 3252 ]
3253 } 3253 }
3254 ] 3254 ]
3255 }, 3255 },
3256 { 3256 {
3257 "domain": "IO",
3258 "description": "Input/Output operations for streams produced by DevTools .",
3259 "hidden": true,
3260 "types": [
3261 {
3262 "id": "StreamHandle",
3263 "type": "string"
3264 }
3265 ],
3266 "commands": [
3267 {
3268 "name": "read",
3269 "description": "Read a chunk of the stream",
3270 "async": true,
3271 "parameters": [
3272 { "name": "handle", "$ref": "StreamHandle", "description": " Handle of the stream to read." },
3273 { "name": "offset", "type": "integer", "optional": true, "de scription": "Seek to the specified offset before reading (if not specificed, pro ceed with offset following the last read)." },
3274 { "name": "size", "type": "integer", "optional": true, "des cription": "Maximum number of bytes to read (left upon the agent discretion if n ot specified)." }
3275 ],
3276 "returns": [
3277 { "name": "data", "type": "string", "description": "Data tha t were read." },
3278 { "name": "eof", "type": "boolean", "description": "Set if t he end-of-file condition occured while reading." }
3279 ],
3280 "handlers": ["browser"]
3281 },
3282 {
3283 "name": "close",
3284 "description": "Close the stream, discard any temporary backing storage.",
3285 "parameters": [
3286 { "name": "handle", "$ref": "StreamHandle", "description": " Handle of the stream to close." }
3287 ],
3288 "handlers": ["browser"]
3289 }
3290 ]
3291 },
3292 {
3257 "domain": "Timeline", 3293 "domain": "Timeline",
3258 "description": "Timeline domain is deprecated. Please use Tracing instea d.", 3294 "description": "Timeline domain is deprecated. Please use Tracing instea d.",
3259 "types": [ 3295 "types": [
3260 { 3296 {
3261 "id": "TimelineEvent", 3297 "id": "TimelineEvent",
3262 "type": "object", 3298 "type": "object",
3263 "properties": [ 3299 "properties": [
3264 { "name": "type", "type": "string", "description": "Event ty pe." }, 3300 { "name": "type", "type": "string", "description": "Event ty pe." },
3265 { "name": "data", "type": "object", "description": "Event da ta." }, 3301 { "name": "data", "type": "object", "description": "Event da ta." },
3266 { "name": "startTime", "type": "number", "description": "Sta rt time." }, 3302 { "name": "startTime", "type": "number", "description": "Sta rt time." },
(...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after
4818 { 4854 {
4819 "domain": "Tracing", 4855 "domain": "Tracing",
4820 "commands": [ 4856 "commands": [
4821 { 4857 {
4822 "name": "start", 4858 "name": "start",
4823 "async": true, 4859 "async": true,
4824 "description": "Start trace events collection.", 4860 "description": "Start trace events collection.",
4825 "parameters": [ 4861 "parameters": [
4826 { "name": "categories", "type": "string", "optional": true, "description": "Category/tag filter" }, 4862 { "name": "categories", "type": "string", "optional": true, "description": "Category/tag filter" },
4827 { "name": "options", "type": "string", "optional": true, "de scription": "Tracing options" }, 4863 { "name": "options", "type": "string", "optional": true, "de scription": "Tracing options" },
4828 { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage event s at this interval, specified in milliseconds" } 4864 { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage event s at this interval, specified in milliseconds" },
4865 { "name": "transferMode", "type": "string", "enum": ["Report Events", "ReturnAsStream"], "optional": true, "description": "Whether to report trace events as series of dataCollected events or to save trace to a stream (def aults to <code>ReportEvents</code>)." }
4829 ], 4866 ],
4830 "handlers": ["browser", "renderer"] 4867 "handlers": ["browser", "renderer"]
4831 }, 4868 },
4832 { 4869 {
4833 "name": "end", 4870 "name": "end",
4834 "async": true, 4871 "async": true,
4835 "description": "Stop trace events collection.", 4872 "description": "Stop trace events collection.",
4836 "handlers": ["browser", "renderer"] 4873 "handlers": ["browser", "renderer"]
4837 }, 4874 },
4838 { 4875 {
(...skipping 21 matching lines...) Expand all
4860 "name": "dataCollected", 4897 "name": "dataCollected",
4861 "parameters": [ 4898 "parameters": [
4862 { "name": "value", "type": "array", "items": { "type": "obje ct" } } 4899 { "name": "value", "type": "array", "items": { "type": "obje ct" } }
4863 ], 4900 ],
4864 "description": "Contains an bucket of collected trace events. Wh en tracing is stopped collected events will be send as a sequence of dataCollect ed events followed by tracingComplete event.", 4901 "description": "Contains an bucket of collected trace events. Wh en tracing is stopped collected events will be send as a sequence of dataCollect ed events followed by tracingComplete event.",
4865 "handlers": ["browser"] 4902 "handlers": ["browser"]
4866 }, 4903 },
4867 { 4904 {
4868 "name": "tracingComplete", 4905 "name": "tracingComplete",
4869 "description": "Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.", 4906 "description": "Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.",
4907 "parameters": [
4908 { "name": "stream", "$ref": "IO.StreamHandle", "optional": t rue, "description": "A handle of the stream that holds resulting trace data." }
4909 ],
4870 "handlers": ["browser"] 4910 "handlers": ["browser"]
4871 }, 4911 },
4872 { 4912 {
4873 "name": "bufferUsage", 4913 "name": "bufferUsage",
4874 "parameters": [ 4914 "parameters": [
4875 { "name": "percentFull", "type": "number", "optional": true, "description": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size." }, 4915 { "name": "percentFull", "type": "number", "optional": true, "description": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size." },
4876 { "name": "eventCount", "type": "number", "optional": true, "description": "An approximate number of events in the trace log." }, 4916 { "name": "eventCount", "type": "number", "optional": true, "description": "An approximate number of events in the trace log." },
4877 { "name": "value", "type": "number", "optional": true, "desc ription": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size." } 4917 { "name": "value", "type": "number", "optional": true, "desc ription": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size." }
4878 ], 4918 ],
4879 "handlers": ["browser"] 4919 "handlers": ["browser"]
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
5171 ], 5211 ],
5172 "returns": [ 5212 "returns": [
5173 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true } 5213 { "name": "accessibilityNode", "$ref": "AXNode", "descriptio n": "The <code>Accessibility.AXNode</code> for this DOM node, if it exists.", "o ptional": true }
5174 ], 5214 ],
5175 "description": "Fetches the accessibility node for this DOM node , if it exists.", 5215 "description": "Fetches the accessibility node for this DOM node , if it exists.",
5176 "hidden": true 5216 "hidden": true
5177 } 5217 }
5178 ] 5218 ]
5179 }] 5219 }]
5180 } 5220 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sdk/TracingManager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698