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

Unified Diff: Source/devtools/front_end/sdk/TracingManager.js

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/core/inspector/InspectorTracingAgent.cpp ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/TracingManager.js
diff --git a/Source/devtools/front_end/sdk/TracingManager.js b/Source/devtools/front_end/sdk/TracingManager.js
index 8ed205585b80bfb723b71825281643993e5a5502..0da1026a602ac2d41ae95d2d7b60d58802740eba 100644
--- a/Source/devtools/front_end/sdk/TracingManager.js
+++ b/Source/devtools/front_end/sdk/TracingManager.js
@@ -58,6 +58,11 @@ WebInspector.TracingManager = function(target)
*/
WebInspector.TracingManager.EventPayload;
+WebInspector.TracingManager.TransferMode = {
+ ReportEvents: "ReportEvents",
+ ReturnAsStream: "ReturnAsStream"
+};
+
WebInspector.TracingManager.prototype = {
/**
* @return {?WebInspector.Target}
@@ -112,7 +117,7 @@ WebInspector.TracingManager.prototype = {
throw new Error("Tracing is already started");
var bufferUsageReportingIntervalMs = 500;
this._activeClient = client;
- this._target.tracingAgent().start(categoryFilter, options, bufferUsageReportingIntervalMs, callback);
+ this._target.tracingAgent().start(categoryFilter, options, bufferUsageReportingIntervalMs, WebInspector.TracingManager.TransferMode.ReportEvents, callback);
this._activeClient.tracingStarted();
},
« no previous file with comments | « Source/core/inspector/InspectorTracingAgent.cpp ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698