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

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

Issue 703113003: DevTools: Timeline: speed-up records processing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed Created 6 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d540901a91ad02b1da51accaa6c4f05422cc7dc6..676950fc42c3d0cd7be8860129fd912e9de552bc 100644
--- a/Source/devtools/front_end/timeline/TimelinePanel.js
+++ b/Source/devtools/front_end/timeline/TimelinePanel.js
@@ -814,23 +814,19 @@ WebInspector.TimelinePanel.prototype = {
}
this._hideProgressPane();
this._overviewPane.update();
- },
-
- _onRecordAdded: function(event)
- {
- this._addRecord(/** @type {!WebInspector.TimelineModel.Record} */(event.data));
+ this._updateSearchHighlight(false, true);
},
/**
- * @param {!WebInspector.TimelineModel.Record} record
+ * @param {!WebInspector.Event} event
*/
- _addRecord: function(record)
+ _onRecordAdded: function(event)
{
+ var record = /** @type {!WebInspector.TimelineModel.Record} */ (event.data);
if (this._lazyFrameModel && !this._tracingModel)
this._lazyFrameModel.addRecord(record);
for (var i = 0; i < this._currentViews.length; ++i)
this._currentViews[i].addRecord(record);
- this._updateSearchHighlight(false, true);
},
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698