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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 { | 555 { |
556 var groups = WebInspector.TimelineModel.AsyncEventGroup; | 556 var groups = WebInspector.TimelineModel.AsyncEventGroup; |
557 var groupArray = Object.keys(groups).map(key => groups[key]); | 557 var groupArray = Object.keys(groups).map(key => groups[key]); |
558 | 558 |
559 groupArray.remove(groups.animation); | 559 groupArray.remove(groups.animation); |
560 groupArray.remove(groups.input); | 560 groupArray.remove(groups.input); |
561 | 561 |
562 for (var groupIndex = 0; groupIndex < groupArray.length; ++groupIndex) { | 562 for (var groupIndex = 0; groupIndex < groupArray.length; ++groupIndex) { |
563 var group = groupArray[groupIndex]; | 563 var group = groupArray[groupIndex]; |
564 var events = asyncEvents.get(group); | 564 var events = asyncEvents.get(group); |
565 if (events) { | 565 if (!events) |
566 var title = WebInspector.TimelineUIUtils.titleForAsyncEventGroup
(groups.input); | 566 continue; |
567 this._appendAsyncEventsGroup(title, events, this._headerLevel1); | 567 var title = WebInspector.TimelineUIUtils.titleForAsyncEventGroup(gro
up); |
568 } | 568 this._appendAsyncEventsGroup(title, events, this._headerLevel1); |
569 } | 569 } |
570 }, | 570 }, |
571 | 571 |
572 /** | 572 /** |
573 * @param {string} header | 573 * @param {string} header |
574 * @param {!Array<!WebInspector.TracingModel.AsyncEvent>} events | 574 * @param {!Array<!WebInspector.TracingModel.AsyncEvent>} events |
575 * @param {!WebInspector.FlameChart.GroupStyle} style | 575 * @param {!WebInspector.FlameChart.GroupStyle} style |
576 */ | 576 */ |
577 _appendAsyncEventsGroup: function(header, events, style) | 577 _appendAsyncEventsGroup: function(header, events, style) |
578 { | 578 { |
(...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1516 /** | 1516 /** |
1517 * @constructor | 1517 * @constructor |
1518 * @param {!WebInspector.TimelineSelection} selection | 1518 * @param {!WebInspector.TimelineSelection} selection |
1519 * @param {number} entryIndex | 1519 * @param {number} entryIndex |
1520 */ | 1520 */ |
1521 WebInspector.TimelineFlameChartView.Selection = function(selection, entryIndex) | 1521 WebInspector.TimelineFlameChartView.Selection = function(selection, entryIndex) |
1522 { | 1522 { |
1523 this.timelineSelection = selection; | 1523 this.timelineSelection = selection; |
1524 this.entryIndex = entryIndex; | 1524 this.entryIndex = entryIndex; |
1525 } | 1525 } |
OLD | NEW |