OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @constructor | 6 * @constructor |
7 * @param {!WebInspector.TracingManager} tracingManager | 7 * @param {!WebInspector.TracingManager} tracingManager |
8 * @param {!WebInspector.TracingModel} tracingModel | 8 * @param {!WebInspector.TracingModel} tracingModel |
9 * @param {!WebInspector.TimelineModel.Filter} recordFilter | 9 * @param {!WebInspector.TimelineModel.Filter} recordFilter |
10 * @extends {WebInspector.TimelineModel} | 10 * @extends {WebInspector.TimelineModel} |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 if (!recordStack.length) | 466 if (!recordStack.length) |
467 topLevelRecords.push(top); | 467 topLevelRecords.push(top); |
468 } | 468 } |
469 if (event.phase === WebInspector.TracingModel.Phase.AsyncEnd || even
t.phase === WebInspector.TracingModel.Phase.NestableAsyncEnd) | 469 if (event.phase === WebInspector.TracingModel.Phase.AsyncEnd || even
t.phase === WebInspector.TracingModel.Phase.NestableAsyncEnd) |
470 continue; | 470 continue; |
471 var parentRecord = recordStack.peekLast(); | 471 var parentRecord = recordStack.peekLast(); |
472 // Maintain the back-end logic of old timeline, skip console.time()
/ console.timeEnd() that are not properly nested. | 472 // Maintain the back-end logic of old timeline, skip console.time()
/ console.timeEnd() that are not properly nested. |
473 if (WebInspector.TracingModel.isAsyncBeginPhase(event.phase) && pare
ntRecord && event.endTime > parentRecord._event.endTime) | 473 if (WebInspector.TracingModel.isAsyncBeginPhase(event.phase) && pare
ntRecord && event.endTime > parentRecord._event.endTime) |
474 continue; | 474 continue; |
475 var record = new WebInspector.TracingTimelineModel.TraceEventRecord(
this, event); | 475 var record = new WebInspector.TracingTimelineModel.TraceEventRecord(
this, event); |
476 if (WebInspector.TracingTimelineUIUtils.isMarkerEvent(event)) | 476 if (WebInspector.TimelineUIUtils.isMarkerEvent(event)) |
477 this._eventDividerRecords.push(record); | 477 this._eventDividerRecords.push(record); |
478 if (!this._recordFilter.accept(record)) | 478 if (!this._recordFilter.accept(record)) |
479 continue; | 479 continue; |
480 if (parentRecord) | 480 if (parentRecord) |
481 parentRecord._addChild(record); | 481 parentRecord._addChild(record); |
482 if (event.endTime) | 482 if (event.endTime) |
483 recordStack.push(record); | 483 recordStack.push(record); |
484 } | 484 } |
485 | 485 |
486 if (recordStack.length) | 486 if (recordStack.length) |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1283 _initializePerFrameState: function() | 1283 _initializePerFrameState: function() |
1284 { | 1284 { |
1285 /** @type {!Array.<!WebInspector.InvalidationTrackingEvent>} */ | 1285 /** @type {!Array.<!WebInspector.InvalidationTrackingEvent>} */ |
1286 this._invalidationEvents = []; | 1286 this._invalidationEvents = []; |
1287 this._lastStyleRecalcEventIndex = 0; | 1287 this._lastStyleRecalcEventIndex = 0; |
1288 this._lastLayoutEventIndex = 0; | 1288 this._lastLayoutEventIndex = 0; |
1289 this._lastPaintWithLayer = undefined; | 1289 this._lastPaintWithLayer = undefined; |
1290 this._didPaint = false; | 1290 this._didPaint = false; |
1291 } | 1291 } |
1292 } | 1292 } |
OLD | NEW |