OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 if (this._lazyFrameModel) { | 797 if (this._lazyFrameModel) { |
798 if (this._tracingTimelineModel) { | 798 if (this._tracingTimelineModel) { |
799 this._lazyFrameModel.reset(); | 799 this._lazyFrameModel.reset(); |
800 this._lazyFrameModel.addTraceEvents(this._tracingTimelineModel.i
nspectedTargetEvents(), this._tracingModel.sessionId()); | 800 this._lazyFrameModel.addTraceEvents(this._tracingTimelineModel.i
nspectedTargetEvents(), this._tracingModel.sessionId()); |
801 this._overviewPane.update(); | 801 this._overviewPane.update(); |
802 } else if (WebInspector.experimentsSettings.timelineNoLiveUpdate.isE
nabled()) { | 802 } else if (WebInspector.experimentsSettings.timelineNoLiveUpdate.isE
nabled()) { |
803 this._lazyFrameModel.reset(); | 803 this._lazyFrameModel.reset(); |
804 this._lazyFrameModel.addRecords(this._model.records()); | 804 this._lazyFrameModel.addRecords(this._model.records()); |
805 } | 805 } |
806 } | 806 } |
807 if (this._tracingTimelineModel) | 807 if (this._tracingTimelineModel) { |
| 808 this.requestWindowTimes(this._tracingTimelineModel.minimumRecordTime
(), this._tracingTimelineModel.maximumRecordTime()); |
808 this._refreshViews(); | 809 this._refreshViews(); |
| 810 } |
809 this._hideProgressPane(); | 811 this._hideProgressPane(); |
810 }, | 812 }, |
811 | 813 |
812 _onRecordAdded: function(event) | 814 _onRecordAdded: function(event) |
813 { | 815 { |
814 this._addRecord(/** @type {!WebInspector.TimelineModel.Record} */(event.
data)); | 816 this._addRecord(/** @type {!WebInspector.TimelineModel.Record} */(event.
data)); |
815 }, | 817 }, |
816 | 818 |
817 /** | 819 /** |
818 * @param {!WebInspector.TimelineModel.Record} record | 820 * @param {!WebInspector.TimelineModel.Record} record |
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1440 * @param {!WebInspector.TimelineModel.Record} record | 1442 * @param {!WebInspector.TimelineModel.Record} record |
1441 * @return {boolean} | 1443 * @return {boolean} |
1442 */ | 1444 */ |
1443 accept: function(record) | 1445 accept: function(record) |
1444 { | 1446 { |
1445 return !this._hiddenRecords[record.type()]; | 1447 return !this._hiddenRecords[record.type()]; |
1446 }, | 1448 }, |
1447 | 1449 |
1448 __proto__: WebInspector.TimelineModel.Filter.prototype | 1450 __proto__: WebInspector.TimelineModel.Filter.prototype |
1449 } | 1451 } |
OLD | NEW |