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

Unified 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, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/sdk/TracingManager.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index 38d09b0e78624d3e081fc167fd104b933bedd36c..b420d606c7881c6af31954c44781381a8e1f196c 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -3254,6 +3254,42 @@
]
},
{
+ "domain": "IO",
+ "description": "Input/Output operations for streams produced by DevTools.",
+ "hidden": true,
+ "types": [
+ {
+ "id": "StreamHandle",
+ "type": "string"
+ }
+ ],
+ "commands": [
+ {
+ "name": "read",
+ "description": "Read a chunk of the stream",
+ "async": true,
+ "parameters": [
+ { "name": "handle", "$ref": "StreamHandle", "description": "Handle of the stream to read." },
+ { "name": "offset", "type": "integer", "optional": true, "description": "Seek to the specified offset before reading (if not specificed, proceed with offset following the last read)." },
+ { "name": "size", "type": "integer", "optional": true, "description": "Maximum number of bytes to read (left upon the agent discretion if not specified)." }
+ ],
+ "returns": [
+ { "name": "data", "type": "string", "description": "Data that were read." },
+ { "name": "eof", "type": "boolean", "description": "Set if the end-of-file condition occured while reading." }
+ ],
+ "handlers": ["browser"]
+ },
+ {
+ "name": "close",
+ "description": "Close the stream, discard any temporary backing storage.",
+ "parameters": [
+ { "name": "handle", "$ref": "StreamHandle", "description": "Handle of the stream to close." }
+ ],
+ "handlers": ["browser"]
+ }
+ ]
+ },
+ {
"domain": "Timeline",
"description": "Timeline domain is deprecated. Please use Tracing instead.",
"types": [
@@ -4825,7 +4861,8 @@
"parameters": [
{ "name": "categories", "type": "string", "optional": true, "description": "Category/tag filter" },
{ "name": "options", "type": "string", "optional": true, "description": "Tracing options" },
- { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage events at this interval, specified in milliseconds" }
+ { "name": "bufferUsageReportingInterval", "type": "number", "optional": true, "description": "If set, the agent will issue bufferUsage events at this interval, specified in milliseconds" },
+ { "name": "transferMode", "type": "string", "enum": ["ReportEvents", "ReturnAsStream"], "optional": true, "description": "Whether to report trace events as series of dataCollected events or to save trace to a stream (defaults to <code>ReportEvents</code>)." }
],
"handlers": ["browser", "renderer"]
},
@@ -4867,6 +4904,9 @@
{
"name": "tracingComplete",
"description": "Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.",
+ "parameters": [
+ { "name": "stream", "$ref": "IO.StreamHandle", "optional": true, "description": "A handle of the stream that holds resulting trace data." }
+ ],
"handlers": ["browser"]
},
{
« 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