| 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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 function didStopProfiling(error, profile) | 639 function didStopProfiling(error, profile) |
| 640 { | 640 { |
| 641 var target = /** @type {!WebInspector.Target} */ (WebInspector.targe
tManager.activeTarget()); | 641 var target = /** @type {!WebInspector.Target} */ (WebInspector.targe
tManager.activeTarget()); |
| 642 target.profilingLock.release(); | 642 target.profilingLock.release(); |
| 643 if (!this._profileBeingRecorded) | 643 if (!this._profileBeingRecorded) |
| 644 return; | 644 return; |
| 645 this._profileBeingRecorded.setProtocolProfile(profile); | 645 this._profileBeingRecorded.setProtocolProfile(profile); |
| 646 this._profileBeingRecorded.updateStatus(""); | 646 this._profileBeingRecorded.updateStatus(""); |
| 647 var recordedProfile = this._profileBeingRecorded; | 647 var recordedProfile = this._profileBeingRecorded; |
| 648 this._profileBeingRecorded = null; | 648 this._profileBeingRecorded = null; |
| 649 WebInspector.panels.profiles.showProfile(recordedProfile); | 649 this.dispatchEventToListeners(WebInspector.ProfileType.Events.Profil
eComplete, recordedProfile); |
| 650 } | 650 } |
| 651 ProfilerAgent.stop(didStopProfiling.bind(this)); | 651 ProfilerAgent.stop(didStopProfiling.bind(this)); |
| 652 }, | 652 }, |
| 653 | 653 |
| 654 /** | 654 /** |
| 655 * @override | 655 * @override |
| 656 * @param {string} title | 656 * @param {string} title |
| 657 * @return {!WebInspector.ProfileHeader} | 657 * @return {!WebInspector.ProfileHeader} |
| 658 */ | 658 */ |
| 659 createProfileLoadedFromFile: function(title) | 659 createProfileLoadedFromFile: function(title) |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 /** | 748 /** |
| 749 * @override | 749 * @override |
| 750 */ | 750 */ |
| 751 dispose: function() | 751 dispose: function() |
| 752 { | 752 { |
| 753 this.removeTempFile(); | 753 this.removeTempFile(); |
| 754 }, | 754 }, |
| 755 | 755 |
| 756 /** | 756 /** |
| 757 * @override | 757 * @override |
| 758 * @param {!WebInspector.ProfilesPanel} panel |
| 758 * @return {!WebInspector.ProfileSidebarTreeElement} | 759 * @return {!WebInspector.ProfileSidebarTreeElement} |
| 759 */ | 760 */ |
| 760 createSidebarTreeElement: function() | 761 createSidebarTreeElement: function(panel) |
| 761 { | 762 { |
| 762 return new WebInspector.ProfileSidebarTreeElement(this, "profile-sidebar
-tree-item"); | 763 return new WebInspector.ProfileSidebarTreeElement(panel, this, "profile-
sidebar-tree-item"); |
| 763 }, | 764 }, |
| 764 | 765 |
| 765 /** | 766 /** |
| 766 * @override | 767 * @override |
| 767 * @return {!WebInspector.CPUProfileView} | 768 * @return {!WebInspector.CPUProfileView} |
| 768 */ | 769 */ |
| 769 createView: function() | 770 createView: function() |
| 770 { | 771 { |
| 771 return new WebInspector.CPUProfileView(this); | 772 return new WebInspector.CPUProfileView(this); |
| 772 }, | 773 }, |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 _notifyTempFileReady: function() | 890 _notifyTempFileReady: function() |
| 890 { | 891 { |
| 891 if (this._onTempFileReady) { | 892 if (this._onTempFileReady) { |
| 892 this._onTempFileReady(); | 893 this._onTempFileReady(); |
| 893 this._onTempFileReady = null; | 894 this._onTempFileReady = null; |
| 894 } | 895 } |
| 895 }, | 896 }, |
| 896 | 897 |
| 897 __proto__: WebInspector.ProfileHeader.prototype | 898 __proto__: WebInspector.ProfileHeader.prototype |
| 898 } | 899 } |
| OLD | NEW |