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

Unified Diff: Source/devtools/front_end/TimelineFrameModel.js

Issue 213003002: DevTools: allow whitelist of timeline events to be pushed live although in bufferEvent mode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Same with front-end Created 6 years, 9 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/TimelineFrameModel.js
diff --git a/Source/devtools/front_end/TimelineFrameModel.js b/Source/devtools/front_end/TimelineFrameModel.js
index 5f56a2d1a97f13d00efc4c6d401403ffbfc47d1b..9931b5540c410db39d503ae1ec177479afad191a 100644
--- a/Source/devtools/front_end/TimelineFrameModel.js
+++ b/Source/devtools/front_end/TimelineFrameModel.js
@@ -110,7 +110,11 @@ WebInspector.TimelineFrameModel.prototype = {
this._aggregatedMainThreadWork = {};
}
- var records = this._mergingBuffer.process(record.thread, programRecord ? record.children || [] : [record]);
+ var records;
+ if (this._model.bufferEvents())
+ records = [record];
+ else
+ records = this._mergingBuffer.process(record.thread, programRecord ? record.children || [] : [record]);
for (var i = 0; i < records.length; ++i) {
if (records[i].thread)
this._addBackgroundRecord(records[i]);

Powered by Google App Engine
This is Rietveld 408576698