Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 690 */ | 690 */ |
| 691 _appendEvent(event, level) { | 691 _appendEvent(event, level) { |
| 692 var index = this._entryData.length; | 692 var index = this._entryData.length; |
| 693 event[Timeline.TimelineFlameChartDataProvider._eventIndexSymbol] = index; | 693 event[Timeline.TimelineFlameChartDataProvider._eventIndexSymbol] = index; |
| 694 this._entryData.push(event); | 694 this._entryData.push(event); |
| 695 this._timelineData.entryLevels[index] = level; | 695 this._timelineData.entryLevels[index] = level; |
| 696 this._timelineData.entryTotalTimes[index] = | 696 this._timelineData.entryTotalTimes[index] = |
| 697 event.duration || Timeline.TimelineFlameChartDataProvider.InstantEventVi sibleDurationMs; | 697 event.duration || Timeline.TimelineFlameChartDataProvider.InstantEventVi sibleDurationMs; |
| 698 this._timelineData.entryStartTimes[index] = event.startTime; | 698 this._timelineData.entryStartTimes[index] = event.startTime; |
| 699 var initiator = TimelineModel.TimelineData.forEvent(event).initiator(); | 699 var initiator = TimelineModel.TimelineData.forEvent(event).initiator(); |
| 700 if (initiator && | 700 if (initiator && (initiator.endTime || initiator.startTime) < event.startTim e && |
|
caseq
2017/03/02 19:00:40
revert?
alph
2017/03/02 19:20:00
Done.
| |
| 701 (initiator.endTime || initiator.startTime) < event.startTime && | |
| 702 initiator.name !== 'ResourceSendRequest') { | 701 initiator.name !== 'ResourceSendRequest') { |
| 703 var initiatorIndex = initiator[Timeline.TimelineFlameChartDataProvider._ev entIndexSymbol]; | 702 var initiatorIndex = initiator[Timeline.TimelineFlameChartDataProvider._ev entIndexSymbol]; |
| 704 if (initiatorIndex === undefined) | 703 if (initiatorIndex === undefined) |
| 705 return; | 704 return; |
| 706 this._timelineData.flowFrom.push(initiatorIndex); | 705 this._timelineData.flowFrom.push(initiatorIndex); |
| 707 this._timelineData.flowTo.push(index); | 706 this._timelineData.flowTo.push(index); |
| 708 } | 707 } |
| 709 } | 708 } |
| 710 | 709 |
| 711 /** | 710 /** |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 826 */ | 825 */ |
| 827 _isVisible(event) { | 826 _isVisible(event) { |
| 828 return this._filters.every(function(filter) { | 827 return this._filters.every(function(filter) { |
| 829 return filter.accept(event); | 828 return filter.accept(event); |
| 830 }); | 829 }); |
| 831 } | 830 } |
| 832 }; | 831 }; |
| 833 | 832 |
| 834 Timeline.TimelineFlameChartDataProvider.InstantEventVisibleDurationMs = 0.001; | 833 Timeline.TimelineFlameChartDataProvider.InstantEventVisibleDurationMs = 0.001; |
| 835 Timeline.TimelineFlameChartDataProvider._eventIndexSymbol = Symbol('eventIndexSy mbol'); | 834 Timeline.TimelineFlameChartDataProvider._eventIndexSymbol = Symbol('eventIndexSy mbol'); |
| OLD | NEW |