Index: Source/devtools/front_end/timeline/MemoryCountersGraph.js |
diff --git a/Source/devtools/front_end/timeline/MemoryCountersGraph.js b/Source/devtools/front_end/timeline/MemoryCountersGraph.js |
index 85555245b7aaa4bab6e1d1a0f32df26d5fd3a133..996dac0f6ed35785acd5153a86f50bec5c2d6f93 100644 |
--- a/Source/devtools/front_end/timeline/MemoryCountersGraph.js |
+++ b/Source/devtools/front_end/timeline/MemoryCountersGraph.js |
@@ -39,12 +39,12 @@ WebInspector.MemoryCountersGraph = function(delegate, model) |
{ |
WebInspector.CountersGraph.call(this, WebInspector.UIString("MEMORY"), delegate, model); |
this._countersByName = {}; |
- this._countersByName["jsHeapSizeUsed"] = this.createCounter(WebInspector.UIString("Used JS Heap"), WebInspector.UIString("JS Heap Size: %d"), "hsl(220, 90%, 43%)"); |
- this._countersByName["documents"] = this.createCounter(WebInspector.UIString("Documents"), WebInspector.UIString("Documents: %d"), "hsl(0, 90%, 43%)"); |
- this._countersByName["nodes"] = this.createCounter(WebInspector.UIString("Nodes"), WebInspector.UIString("Nodes: %d"), "hsl(120, 90%, 43%)"); |
- this._countersByName["jsEventListeners"] = this.createCounter(WebInspector.UIString("Listeners"), WebInspector.UIString("Listeners: %d"), "hsl(38, 90%, 43%)"); |
+ this._countersByName["jsHeapSizeUsed"] = this.createCounter(WebInspector.UIString("JS Heap"), WebInspector.UIString("JS Heap: %s"), "hsl(220, 90%, 43%)"); |
+ this._countersByName["documents"] = this.createCounter(WebInspector.UIString("Documents"), WebInspector.UIString("Documents: %s"), "hsl(0, 90%, 43%)"); |
+ this._countersByName["nodes"] = this.createCounter(WebInspector.UIString("Nodes"), WebInspector.UIString("Nodes: %s"), "hsl(120, 90%, 43%)"); |
+ this._countersByName["jsEventListeners"] = this.createCounter(WebInspector.UIString("Listeners"), WebInspector.UIString("Listeners: %s"), "hsl(38, 90%, 43%)"); |
if (Runtime.experiments.isEnabled("gpuTimeline")) { |
- this._gpuMemoryCounter = this.createCounter(WebInspector.UIString("GPU Memory"), WebInspector.UIString("GPU Memory [KB]: %d"), "hsl(300, 90%, 43%)"); |
+ this._gpuMemoryCounter = this.createCounter(WebInspector.UIString("GPU Memory"), WebInspector.UIString("GPU Memory [KB]: %s"), "hsl(300, 90%, 43%)"); |
this._countersByName["gpuMemoryUsedKB"] = this._gpuMemoryCounter; |
} |
} |
@@ -79,5 +79,12 @@ WebInspector.MemoryCountersGraph.prototype = { |
this.scheduleRefresh(); |
}, |
+ /** |
+ * @return {!WebInspector.CountersGraph.Counter} counter |
alph
2015/08/24 17:19:50
drop the "counter" name
|
+ */ |
+ counters: function(counterName) { |
alph
2015/08/24 17:19:50
nit: counters -> counter
nit: move { to the new li
|
+ return this._countersByName[counterName]; |
+ }, |
+ |
__proto__: WebInspector.CountersGraph.prototype |
} |