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

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

Issue 399043002: DevTools: switch Timeline frontend into buffered mode and remove the corresponding experiment. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: timeline-decode-resize was fixed? Created 6 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
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 c86803a987b080ccf02cb05d81e5eee2192e389b..f1e1907aefea34cdc2d6be8a94647a858043efd4 100644
--- a/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -280,7 +280,7 @@ WebInspector.TimelinePanel.prototype = {
this._lazyFrameModel = tracingFrameModel;
} else {
var frameModel = new WebInspector.TimelineFrameModel();
- frameModel.setMergeRecords(!WebInspector.experimentsSettings.timelineNoLiveUpdate.isEnabled() || !this._recordingInProgress);
+ frameModel.setMergeRecords(!this._recordingInProgress);
frameModel.addRecords(this._model.records());
this._lazyFrameModel = frameModel;
}
@@ -706,7 +706,7 @@ WebInspector.TimelinePanel.prototype = {
{
this._userInitiatedRecording = userInitiated;
this._model.startRecording(this._captureStacksSetting.get(), this._captureMemorySetting.get(), this._captureLayersAndPicturesSetting && this._captureLayersAndPicturesSetting.get());
- if (WebInspector.experimentsSettings.timelineNoLiveUpdate.isEnabled() && this._lazyFrameModel)
+ if (this._lazyFrameModel)
this._lazyFrameModel.setMergeRecords(false);
for (var i = 0; i < this._overviewControls.length; ++i)
@@ -802,8 +802,7 @@ WebInspector.TimelinePanel.prototype = {
_onRecordingStarted: function()
{
this._updateToggleTimelineButton(true);
- if (WebInspector.experimentsSettings.timelineNoLiveUpdate.isEnabled())
- this._updateProgress(WebInspector.UIString("%d events collected", 0));
+ this._updateProgress(WebInspector.UIString("%d events collected", 0));
},
_recordingInProgress: function()
@@ -816,8 +815,6 @@ WebInspector.TimelinePanel.prototype = {
*/
_onRecordingProgress: function(event)
{
- if (!WebInspector.experimentsSettings.timelineNoLiveUpdate.isEnabled())
- return;
this._updateProgress(WebInspector.UIString("%d events collected", event.data));
},
@@ -858,12 +855,11 @@ WebInspector.TimelinePanel.prototype = {
this._stopPending = false;
this._updateToggleTimelineButton(false);
if (this._lazyFrameModel) {
+ this._lazyFrameModel.reset();
if (this._tracingTimelineModel) {
- this._lazyFrameModel.reset();
this._lazyFrameModel.addTraceEvents(this._tracingTimelineModel.inspectedTargetEvents(), this._tracingModel.sessionId());
this._overviewPane.update();
- } else if (WebInspector.experimentsSettings.timelineNoLiveUpdate.isEnabled()) {
- this._lazyFrameModel.reset();
+ } else {
this._lazyFrameModel.addRecords(this._model.records());
}
}

Powered by Google App Engine
This is Rietveld 408576698