OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1727 }; | 1727 }; |
1728 } | 1728 } |
1729 | 1729 |
1730 /** | 1730 /** |
1731 * @param {string} id | 1731 * @param {string} id |
1732 * @return {string} | 1732 * @return {string} |
1733 */ | 1733 */ |
1734 static colorForId(id) { | 1734 static colorForId(id) { |
1735 if (!Timeline.TimelineUIUtils.colorForId._colorGenerator) { | 1735 if (!Timeline.TimelineUIUtils.colorForId._colorGenerator) { |
1736 Timeline.TimelineUIUtils.colorForId._colorGenerator = | 1736 Timeline.TimelineUIUtils.colorForId._colorGenerator = |
1737 new PerfUI.FlameChart.ColorGenerator({min: 30, max: 330}, {min: 50, ma
x: 80, count: 3}, 85); | 1737 new Common.Color.Generator({min: 30, max: 330}, {min: 50, max: 80, cou
nt: 3}, 85); |
1738 Timeline.TimelineUIUtils.colorForId._colorGenerator.setColorForID('', '#f2
ecdc'); | 1738 Timeline.TimelineUIUtils.colorForId._colorGenerator.setColorForID('', '#f2
ecdc'); |
1739 } | 1739 } |
1740 return Timeline.TimelineUIUtils.colorForId._colorGenerator.colorForID(id); | 1740 return Timeline.TimelineUIUtils.colorForId._colorGenerator.colorForID(id); |
1741 } | 1741 } |
1742 | 1742 |
1743 /** | 1743 /** |
1744 * @param {!SDK.TracingModel.Event} event | 1744 * @param {!SDK.TracingModel.Event} event |
1745 * @param {string=} warningType | 1745 * @param {string=} warningType |
1746 * @return {?Element} | 1746 * @return {?Element} |
1747 */ | 1747 */ |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2270 * @param {string=} warningType | 2270 * @param {string=} warningType |
2271 */ | 2271 */ |
2272 appendWarningRow(event, warningType) { | 2272 appendWarningRow(event, warningType) { |
2273 var warning = Timeline.TimelineUIUtils.eventWarning(event, warningType); | 2273 var warning = Timeline.TimelineUIUtils.eventWarning(event, warningType); |
2274 if (warning) | 2274 if (warning) |
2275 this.appendElementRow(Common.UIString('Warning'), warning, true); | 2275 this.appendElementRow(Common.UIString('Warning'), warning, true); |
2276 } | 2276 } |
2277 }; | 2277 }; |
2278 | 2278 |
2279 Timeline.TimelineUIUtils._categoryBreakdownCacheSymbol = Symbol('categoryBreakdo
wnCache'); | 2279 Timeline.TimelineUIUtils._categoryBreakdownCacheSymbol = Symbol('categoryBreakdo
wnCache'); |
OLD | NEW |