| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 constructor(dataDisplayDelegate, profileType) { | 446 constructor(dataDisplayDelegate, profileType) { |
| 447 super(profileType.treeItemTitle.escapeHTML(), true); | 447 super(profileType.treeItemTitle.escapeHTML(), true); |
| 448 this.selectable = false; | 448 this.selectable = false; |
| 449 this._dataDisplayDelegate = dataDisplayDelegate; | 449 this._dataDisplayDelegate = dataDisplayDelegate; |
| 450 /** @type {!Array<!Profiler.ProfileSidebarTreeElement>} */ | 450 /** @type {!Array<!Profiler.ProfileSidebarTreeElement>} */ |
| 451 this._profileTreeElements = []; | 451 this._profileTreeElements = []; |
| 452 /** @type {!Object<string, !Profiler.ProfileTypeSidebarSection.ProfileGroup>
} */ | 452 /** @type {!Object<string, !Profiler.ProfileTypeSidebarSection.ProfileGroup>
} */ |
| 453 this._profileGroups = {}; | 453 this._profileGroups = {}; |
| 454 this.expand(); | 454 this.expand(); |
| 455 this.hidden = true; | 455 this.hidden = true; |
| 456 this.setCollapsible(false); |
| 456 } | 457 } |
| 457 | 458 |
| 458 /** | 459 /** |
| 459 * @param {!Profiler.ProfileHeader} profile | 460 * @param {!Profiler.ProfileHeader} profile |
| 460 */ | 461 */ |
| 461 addProfileHeader(profile) { | 462 addProfileHeader(profile) { |
| 462 this.hidden = false; | 463 this.hidden = false; |
| 463 var profileType = profile.profileType(); | 464 var profileType = profile.profileType(); |
| 464 var sidebarParent = this; | 465 var sidebarParent = this; |
| 465 var profileTreeElement = profile.createSidebarTreeElement(this._dataDisplayD
elegate); | 466 var profileTreeElement = profile.createSidebarTreeElement(this._dataDisplayD
elegate); |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 * @param {string} actionId | 815 * @param {string} actionId |
| 815 * @return {boolean} | 816 * @return {boolean} |
| 816 */ | 817 */ |
| 817 handleAction(context, actionId) { | 818 handleAction(context, actionId) { |
| 818 var panel = UI.context.flavor(Profiler.JSProfilerPanel); | 819 var panel = UI.context.flavor(Profiler.JSProfilerPanel); |
| 819 console.assert(panel && panel instanceof Profiler.JSProfilerPanel); | 820 console.assert(panel && panel instanceof Profiler.JSProfilerPanel); |
| 820 panel.toggleRecord(); | 821 panel.toggleRecord(); |
| 821 return true; | 822 return true; |
| 822 } | 823 } |
| 823 }; | 824 }; |
| OLD | NEW |