| 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 _onProfileTypeSelected: function(event) | 525 _onProfileTypeSelected: function(event) |
| 526 { | 526 { |
| 527 this._selectedProfileType = /** @type {!WebInspector.ProfileType} */ (ev
ent.data); | 527 this._selectedProfileType = /** @type {!WebInspector.ProfileType} */ (ev
ent.data); |
| 528 this._updateProfileTypeSpecificUI(); | 528 this._updateProfileTypeSpecificUI(); |
| 529 }, | 529 }, |
| 530 | 530 |
| 531 _updateProfileTypeSpecificUI: function() | 531 _updateProfileTypeSpecificUI: function() |
| 532 { | 532 { |
| 533 this.recordButton.title = this._selectedProfileType.buttonTooltip; | 533 this.recordButton.title = this._selectedProfileType.buttonTooltip; |
| 534 | 534 |
| 535 this._launcherView.updateProfileType(this._selectedProfileType); |
| 535 this._profileTypeStatusBarItemsContainer.removeChildren(); | 536 this._profileTypeStatusBarItemsContainer.removeChildren(); |
| 536 var statusBarItems = this._selectedProfileType.statusBarItems; | 537 var statusBarItems = this._selectedProfileType.statusBarItems; |
| 537 if (statusBarItems) { | 538 if (statusBarItems) { |
| 538 for (var i = 0; i < statusBarItems.length; ++i) | 539 for (var i = 0; i < statusBarItems.length; ++i) |
| 539 this._profileTypeStatusBarItemsContainer.appendChild(statusBarIt
ems[i]); | 540 this._profileTypeStatusBarItemsContainer.appendChild(statusBarIt
ems[i]); |
| 540 } | 541 } |
| 541 this._resize(this.splitView.sidebarWidth()); | 542 this._resize(this.splitView.sidebarWidth()); |
| 542 }, | 543 }, |
| 543 | 544 |
| 544 _reset: function() | 545 _reset: function() |
| (...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 importScript("HeapSnapshotLoader.js"); | 1408 importScript("HeapSnapshotLoader.js"); |
| 1408 importScript("HeapSnapshotProxy.js"); | 1409 importScript("HeapSnapshotProxy.js"); |
| 1409 importScript("HeapSnapshotView.js"); | 1410 importScript("HeapSnapshotView.js"); |
| 1410 importScript("HeapSnapshotWorkerDispatcher.js"); | 1411 importScript("HeapSnapshotWorkerDispatcher.js"); |
| 1411 importScript("JSHeapSnapshot.js"); | 1412 importScript("JSHeapSnapshot.js"); |
| 1412 importScript("NativeHeapSnapshot.js"); | 1413 importScript("NativeHeapSnapshot.js"); |
| 1413 importScript("NativeMemorySnapshotView.js"); | 1414 importScript("NativeMemorySnapshotView.js"); |
| 1414 importScript("ProfileLauncherView.js"); | 1415 importScript("ProfileLauncherView.js"); |
| 1415 importScript("TopDownProfileDataGridTree.js"); | 1416 importScript("TopDownProfileDataGridTree.js"); |
| 1416 importScript("CanvasProfileView.js"); | 1417 importScript("CanvasProfileView.js"); |
| OLD | NEW |