| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 }, | 768 }, |
| 769 | 769 |
| 770 /** | 770 /** |
| 771 * @override | 771 * @override |
| 772 * @param {WebInspector.ProfilesPanel} profilesPanel | 772 * @param {WebInspector.ProfilesPanel} profilesPanel |
| 773 * @return {boolean} | 773 * @return {boolean} |
| 774 */ | 774 */ |
| 775 buttonClicked: function(profilesPanel) | 775 buttonClicked: function(profilesPanel) |
| 776 { | 776 { |
| 777 profilesPanel.takeHeapSnapshot(); | 777 profilesPanel.takeHeapSnapshot(); |
| 778 return true; | 778 return false; |
| 779 }, | 779 }, |
| 780 | 780 |
| 781 get treeItemTitle() | 781 get treeItemTitle() |
| 782 { | 782 { |
| 783 return WebInspector.UIString("HEAP SNAPSHOTS"); | 783 return WebInspector.UIString("HEAP SNAPSHOTS"); |
| 784 }, | 784 }, |
| 785 | 785 |
| 786 get description() | 786 get description() |
| 787 { | 787 { |
| 788 return WebInspector.UIString("Heap snapshot profiles show memory distrib
ution among your page's JavaScript objects and related DOM nodes."); | 788 return WebInspector.UIString("Heap snapshot profiles show memory distrib
ution among your page's JavaScript objects and related DOM nodes."); |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 case e.target.error.NOT_READABLE_ERR: | 1058 case e.target.error.NOT_READABLE_ERR: |
| 1059 this._snapshotHeader.sidebarElement.subtitle = WebInspector.UIString
("'%s' is not readable", reader.fileName()); | 1059 this._snapshotHeader.sidebarElement.subtitle = WebInspector.UIString
("'%s' is not readable", reader.fileName()); |
| 1060 break; | 1060 break; |
| 1061 case e.target.error.ABORT_ERR: | 1061 case e.target.error.ABORT_ERR: |
| 1062 break; | 1062 break; |
| 1063 default: | 1063 default: |
| 1064 this._snapshotHeader.sidebarElement.subtitle = WebInspector.UIString
("'%s' error %d", reader.fileName(), e.target.error.code); | 1064 this._snapshotHeader.sidebarElement.subtitle = WebInspector.UIString
("'%s' error %d", reader.fileName(), e.target.error.code); |
| 1065 } | 1065 } |
| 1066 } | 1066 } |
| 1067 } | 1067 } |
| OLD | NEW |