Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: Source/WebCore/inspector/front-end/HeapSnapshotView.js

Issue 12294013: Merge 142870 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/WebCore/inspector/front-end/ProfilesPanel.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/inspector/front-end/ProfilesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698