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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js

Issue 1932483002: DevTools: add measurement units to profile tree headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments. Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js b/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js
index ae78647a3e3e08a346e4700929ea4dfc6d5fb53e..3a165a65836ab4514ca0b5f1982a342859718757 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/HeapProfileView.js
@@ -21,6 +21,20 @@ WebInspector.HeapProfileView = function(profileHeader)
}
WebInspector.HeapProfileView.prototype = {
+ /**
+ * @override
+ * @param {string} columnId
+ * @return {string}
+ */
+ columnHeader: function(columnId)
+ {
+ switch (columnId) {
+ case "self": return WebInspector.UIString("Self Size (bytes)");
+ case "total": return WebInspector.UIString("Total Size (bytes)");
+ }
+ return "";
+ },
+
__proto__: WebInspector.ProfileView.prototype
}

Powered by Google App Engine
This is Rietveld 408576698