Index: webkit/glue/devtools/js/heap_profiler_panel.js |
diff --git a/webkit/glue/devtools/js/heap_profiler_panel.js b/webkit/glue/devtools/js/heap_profiler_panel.js |
index d802ed4e9eb1b15cc8dd043f46efd10b0d994ab9..666f17e76a6827bbfb614d389cf87e42cb3c8a1a 100644 |
--- a/webkit/glue/devtools/js/heap_profiler_panel.js |
+++ b/webkit/glue/devtools/js/heap_profiler_panel.js |
@@ -34,6 +34,12 @@ WebInspector.HeapSnapshotView = function(parent, profile) |
this.showCountDeltaAsPercent = true; |
this.showSizeDeltaAsPercent = true; |
+ this.categories = { |
+ code: new WebInspector.ResourceCategory("code", WebInspector.UIString("Code"), "rgb(255,121,0)"), |
+ data: new WebInspector.ResourceCategory("data", WebInspector.UIString("Objects and Data"), "rgb(47,102,236)"), |
+ other: new WebInspector.ResourceCategory("other", WebInspector.UIString("Other"), "rgb(186,186,186)") |
+ }; |
+ |
this.summaryBar = new WebInspector.SummaryBar(this.categories); |
this.summaryBar.element.id = "heap-snapshot-summary"; |
this.summaryBar.calculator = new WebInspector.HeapSummaryCalculator(profile.used); |
@@ -72,11 +78,6 @@ WebInspector.HeapSnapshotView = function(parent, profile) |
WebInspector.HeapSnapshotView.prototype = { |
- get categories() |
- { |
- return {code: {title: WebInspector.UIString("Code"), color: {r: 255, g: 121, b: 0}}, data: {title: WebInspector.UIString("Objects and Data"), color: {r: 47, g: 102, b: 236}}, other: {title: WebInspector.UIString("Other"), color: {r: 186, g: 186, b: 186}}}; |
- }, |
- |
get statusBarItems() |
{ |
return [this.baseSelectElement, this.percentButton.element]; |