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 8b14932ced7126c32c2e737261639dab3175e97a..ebc43a86b5504eb4807c8f90f15af8b3c36ec42f 100644 |
--- a/Source/devtools/front_end/timeline/MemoryCountersGraph.js |
+++ b/Source/devtools/front_end/timeline/MemoryCountersGraph.js |
@@ -34,12 +34,10 @@ |
* @implements {WebInspector.TimelineModeView} |
* @param {!WebInspector.TimelineModeViewDelegate} delegate |
* @param {!WebInspector.TimelineModel} model |
- * @param {!WebInspector.TimelineUIUtils} uiUtils |
*/ |
-WebInspector.MemoryCountersGraph = function(delegate, model, uiUtils) |
+WebInspector.MemoryCountersGraph = function(delegate, model) |
{ |
WebInspector.CountersGraph.call(this, WebInspector.UIString("MEMORY"), delegate, model); |
- this._uiUtils = uiUtils; |
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%)"); |
@@ -75,7 +73,7 @@ WebInspector.MemoryCountersGraph.prototype = { |
*/ |
function addStatistics(record) |
{ |
- var counters = this._uiUtils.countersForRecord(record); |
+ var counters = WebInspector.TimelineUIUtils.isCoalescable.countersForRecord(record); |
if (!counters) |
return; |
for (var name in counters) { |