| Index: Source/devtools/front_end/TimelinePresentationModel.js
|
| diff --git a/Source/devtools/front_end/TimelinePresentationModel.js b/Source/devtools/front_end/TimelinePresentationModel.js
|
| index 4bd97df834fc778203b3e089d9e2eecae86ed003..2c44db69b1d7a62aa01f3ac229675b35f7df563c 100644
|
| --- a/Source/devtools/front_end/TimelinePresentationModel.js
|
| +++ b/Source/devtools/front_end/TimelinePresentationModel.js
|
| @@ -54,6 +54,16 @@ WebInspector.TimelinePresentationModel._coalescingRecords[WebInspector.TimelineM
|
|
|
| WebInspector.TimelinePresentationModel.prototype = {
|
| /**
|
| + * @param {number} startTime
|
| + * @param {number} endTime
|
| + */
|
| + setWindowTimes: function(startTime, endTime)
|
| + {
|
| + this._windowStartTime = startTime;
|
| + this._windowEndTime = endTime;
|
| + },
|
| +
|
| + /**
|
| * @param {?WebInspector.TimelineModel.Record} record
|
| * @return {?WebInspector.TimelinePresentationModel.Record}
|
| */
|
| @@ -78,6 +88,8 @@ WebInspector.TimelinePresentationModel.prototype = {
|
| this._rootRecord = new WebInspector.TimelinePresentationModel.Record(rootRecord, null);
|
| /** @type {!Object.<string, !WebInspector.TimelinePresentationModel.Record>} */
|
| this._coalescingBuckets = {};
|
| + this._windowStartTime = 0;
|
| + this._windowEndTime = Infinity;
|
| },
|
|
|
| /**
|
| @@ -252,15 +264,17 @@ WebInspector.TimelinePresentationModel.prototype = {
|
| if (records && entry.index < records.length) {
|
| var record = records[entry.index];
|
| ++entry.index;
|
| -
|
| - if (this._model.isVisible(record.record())) {
|
| - record._presentationParent._expandable = true;
|
| - if (this._textFilter)
|
| - revealRecordsInStack();
|
| - if (!entry.parentIsCollapsed) {
|
| - recordsInWindow.push(record);
|
| - revealedDepth = stack.length;
|
| - entry.parentRecord._collapsed = false;
|
| + var rawRecord = record.record();
|
| + if (rawRecord.startTime < this._windowEndTime && rawRecord.endTime > this._windowStartTime) {
|
| + if (this._model.isVisible(rawRecord)) {
|
| + record._presentationParent._expandable = true;
|
| + if (this._textFilter)
|
| + revealRecordsInStack();
|
| + if (!entry.parentIsCollapsed) {
|
| + recordsInWindow.push(record);
|
| + revealedDepth = stack.length;
|
| + entry.parentRecord._collapsed = false;
|
| + }
|
| }
|
| }
|
|
|
|
|