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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 { | 811 { |
812 var index = this._entryData.length; | 812 var index = this._entryData.length; |
813 this._entryData.push(frame); | 813 this._entryData.push(frame); |
814 this._entryIndexToTitle[index] = Number.millisToString(frame.duration, t
rue); | 814 this._entryIndexToTitle[index] = Number.millisToString(frame.duration, t
rue); |
815 this._timelineData.entryLevels[index] = this._currentLevel; | 815 this._timelineData.entryLevels[index] = this._currentLevel; |
816 this._timelineData.entryTotalTimes[index] = frame.duration; | 816 this._timelineData.entryTotalTimes[index] = frame.duration; |
817 this._timelineData.entryStartTimes[index] = frame.startTime; | 817 this._timelineData.entryStartTimes[index] = frame.startTime; |
818 }, | 818 }, |
819 | 819 |
820 /** | 820 /** |
821 * @param {!WebInspector.Segment} segment | 821 * @param {!Segment} segment |
822 */ | 822 */ |
823 _appendSegment: function(segment) | 823 _appendSegment: function(segment) |
824 { | 824 { |
825 var index = this._entryData.length; | 825 var index = this._entryData.length; |
826 this._entryData.push(segment.data); | 826 this._entryData.push(segment.data); |
827 this._entryIndexToTitle[index] = /** @type {string} */ (segment.data); | 827 this._entryIndexToTitle[index] = /** @type {string} */ (segment.data); |
828 this._timelineData.entryLevels[index] = this._currentLevel; | 828 this._timelineData.entryLevels[index] = this._currentLevel; |
829 this._timelineData.entryTotalTimes[index] = segment.end - segment.begin; | 829 this._timelineData.entryTotalTimes[index] = segment.end - segment.begin; |
830 this._timelineData.entryStartTimes[index] = segment.begin; | 830 this._timelineData.entryStartTimes[index] = segment.begin; |
831 }, | 831 }, |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1436 /** | 1436 /** |
1437 * @constructor | 1437 * @constructor |
1438 * @param {!WebInspector.TimelineSelection} selection | 1438 * @param {!WebInspector.TimelineSelection} selection |
1439 * @param {number} entryIndex | 1439 * @param {number} entryIndex |
1440 */ | 1440 */ |
1441 WebInspector.TimelineFlameChartView.Selection = function(selection, entryIndex) | 1441 WebInspector.TimelineFlameChartView.Selection = function(selection, entryIndex) |
1442 { | 1442 { |
1443 this.timelineSelection = selection; | 1443 this.timelineSelection = selection; |
1444 this.entryIndex = entryIndex; | 1444 this.entryIndex = entryIndex; |
1445 } | 1445 } |
OLD | NEW |