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 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 { | 855 { |
856 var index = this._entryData.length; | 856 var index = this._entryData.length; |
857 this._entryData.push(frame); | 857 this._entryData.push(frame); |
858 this._entryIndexToTitle[index] = Number.millisToString(frame.duration, t
rue); | 858 this._entryIndexToTitle[index] = Number.millisToString(frame.duration, t
rue); |
859 this._timelineData.entryLevels[index] = this._currentLevel; | 859 this._timelineData.entryLevels[index] = this._currentLevel; |
860 this._timelineData.entryTotalTimes[index] = frame.duration; | 860 this._timelineData.entryTotalTimes[index] = frame.duration; |
861 this._timelineData.entryStartTimes[index] = frame.startTime; | 861 this._timelineData.entryStartTimes[index] = frame.startTime; |
862 }, | 862 }, |
863 | 863 |
864 /** | 864 /** |
865 * @param {!Segment} segment | 865 * @param {!WebInspector.Segment} segment |
866 */ | 866 */ |
867 _appendSegment: function(segment) | 867 _appendSegment: function(segment) |
868 { | 868 { |
869 var index = this._entryData.length; | 869 var index = this._entryData.length; |
870 this._entryData.push(/** @type {!WebInspector.TimelineIRModel.Phases} */
(segment.data)); | 870 this._entryData.push(/** @type {!WebInspector.TimelineIRModel.Phases} */
(segment.data)); |
871 this._entryIndexToTitle[index] = /** @type {string} */ (segment.data); | 871 this._entryIndexToTitle[index] = /** @type {string} */ (segment.data); |
872 this._timelineData.entryLevels[index] = this._currentLevel; | 872 this._timelineData.entryLevels[index] = this._currentLevel; |
873 this._timelineData.entryTotalTimes[index] = segment.end - segment.begin; | 873 this._timelineData.entryTotalTimes[index] = segment.end - segment.begin; |
874 this._timelineData.entryStartTimes[index] = segment.begin; | 874 this._timelineData.entryStartTimes[index] = segment.begin; |
875 }, | 875 }, |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1472 /** | 1472 /** |
1473 * @constructor | 1473 * @constructor |
1474 * @param {!WebInspector.TimelineSelection} selection | 1474 * @param {!WebInspector.TimelineSelection} selection |
1475 * @param {number} entryIndex | 1475 * @param {number} entryIndex |
1476 */ | 1476 */ |
1477 WebInspector.TimelineFlameChartView.Selection = function(selection, entryIndex) | 1477 WebInspector.TimelineFlameChartView.Selection = function(selection, entryIndex) |
1478 { | 1478 { |
1479 this.timelineSelection = selection; | 1479 this.timelineSelection = selection; |
1480 this.entryIndex = entryIndex; | 1480 this.entryIndex = entryIndex; |
1481 } | 1481 } |
OLD | NEW |