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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js

Issue 2128133002: Timeline AddTraceProvider API Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Timeline AddTraceProvider API Created 4 years, 5 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 | « third_party/WebKit/Source/devtools/front_end/externs.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js
index 3ce1bc2a3b2d5eb85e22af33d1ca022a59eb61d4..64ca72f5d0efea69350906a2a87128512286133e 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js
@@ -18,6 +18,7 @@ WebInspector.TimelineController = function(target, delegate, tracingModel)
this._targets = [];
this._allProfilesStoppedPromise = Promise.resolve();
this._targetsResumedPromise = Promise.resolve();
+ this._extensionTraceProviders = WebInspector.extensionServer.traceProviders();
caseq 2016/07/11 18:42:42 let's move this to startRecording() and make a cop
WebInspector.targetManager.observeTargets(this);
}
@@ -67,6 +68,9 @@ WebInspector.TimelineController.prototype = {
if (captureFilmStrip)
categoriesArray.push(disabledByDefault("devtools.screenshot"));
+ for (var traceProvider of this._extensionTraceProviders)
+ traceProvider.run();
+
var categories = categoriesArray.join(",");
this._startRecordingWithCategories(categories, enableJSSampling);
},
@@ -77,6 +81,11 @@ WebInspector.TimelineController.prototype = {
this._target.tracingManager.stop();
this._targetsResumedPromise = WebInspector.targetManager.resumeAllTargets();
this._delegate.loadingStarted();
+
+ var target = WebInspector.targetManager.mainTarget();
+ //var requests = target.networkLog.requests().slice();
caseq 2016/07/11 18:42:42 drop this.
+ for (var traceProvider of this._extensionTraceProviders)
+ traceProvider.stop();
},
/**
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/externs.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698