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 6bc49a7d197ea8434c9f6ec5d4a3dacffa662b13..89160192d1367245b992abeeaa075559782b934e 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js |
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/TimelineController.js |
@@ -29,6 +29,8 @@ WebInspector.TimelineController.prototype = { |
*/ |
startRecording: function(captureCauses, enableJSSampling, captureMemory, capturePictures, captureFilmStrip) |
{ |
+ this._extensionTraceProviders = WebInspector.extensionServer.traceProviders().slice(); |
+ |
function disabledByDefault(category) |
{ |
return "disabled-by-default-" + category; |
@@ -65,6 +67,9 @@ WebInspector.TimelineController.prototype = { |
if (captureFilmStrip) |
categoriesArray.push(disabledByDefault("devtools.screenshot")); |
+ for (var traceProvider of this._extensionTraceProviders) |
+ traceProvider.start(); |
+ |
var categories = categoriesArray.join(","); |
this._startRecordingWithCategories(categories, enableJSSampling); |
}, |
@@ -79,6 +84,9 @@ WebInspector.TimelineController.prototype = { |
Promise.all(tracingStoppedPromises).then(() => this._allSourcesFinished()); |
this._delegate.loadingStarted(); |
+ |
+ for (var traceProvider of this._extensionTraceProviders) |
+ traceProvider.stop(); |
}, |
/** |