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

Unified Diff: Source/devtools/front_end/timeline/TimelinePanel.js

Issue 254613002: DevTools: add Tracing agent on back-end (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed obsolete code Created 6 years, 8 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
Index: Source/devtools/front_end/timeline/TimelinePanel.js
diff --git a/Source/devtools/front_end/timeline/TimelinePanel.js b/Source/devtools/front_end/timeline/TimelinePanel.js
index 8efba539712be8afd2a32de0499d121f6d62faf4..acdec24441056ad091497d2878c0c546fd416ba4 100644
--- a/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -143,6 +143,8 @@ WebInspector.TimelinePanel.headerHeight = 20;
WebInspector.TimelinePanel.durationFilterPresetsMs = [0, 1, 15];
+WebInspector.TimelinePanel.defaultTracingCategoryFilter = "*,disabled-by-default-cc.debug,disabled-by-default-devtools.timeline";
+
WebInspector.TimelinePanel.prototype = {
/**
* @return {?WebInspector.SearchableView}
@@ -250,6 +252,7 @@ WebInspector.TimelinePanel.prototype = {
if (!this._lazyTracingModel) {
this._lazyTracingModel = new WebInspector.TracingModel();
this._lazyTracingModel.addEventListener(WebInspector.TracingModel.Events.BufferUsage, this._onTracingBufferUsage, this);
+ this._lazyTracingModel.enable(WebInspector.TimelinePanel.defaultTracingCategoryFilter);
}
return this._lazyTracingModel;
},
@@ -622,7 +625,7 @@ WebInspector.TimelinePanel.prototype = {
this._userInitiatedRecording = userInitiated;
this._model.startRecording(this._captureStacksSetting.get(), this._captureMemorySetting.get());
if (WebInspector.experimentsSettings.timelineTracingMode.isEnabled())
- this._tracingModel().start(WebInspector.TimelineManager.defaultTracingCategories, "");
+ this._tracingModel().start(WebInspector.TimelinePanel.defaultTracingCategoryFilter, "");
for (var i = 0; i < this._overviewControls.length; ++i)
this._overviewControls[i].timelineStarted();

Powered by Google App Engine
This is Rietveld 408576698