| Index: Source/devtools/front_end/timeline/TimelineMemoryOverview.js
|
| diff --git a/Source/devtools/front_end/timeline/TimelineMemoryOverview.js b/Source/devtools/front_end/timeline/TimelineMemoryOverview.js
|
| index f0c1a91f76a7411b0f041e8ad4da8e732669c4b8..ade824b8bb120495bdda509de062a776af050eff 100644
|
| --- a/Source/devtools/front_end/timeline/TimelineMemoryOverview.js
|
| +++ b/Source/devtools/front_end/timeline/TimelineMemoryOverview.js
|
| @@ -32,12 +32,10 @@
|
| * @constructor
|
| * @extends {WebInspector.TimelineOverviewBase}
|
| * @param {!WebInspector.TimelineModel} model
|
| - * @param {!WebInspector.TimelineUIUtils} uiUtils
|
| */
|
| -WebInspector.TimelineMemoryOverview = function(model, uiUtils)
|
| +WebInspector.TimelineMemoryOverview = function(model)
|
| {
|
| WebInspector.TimelineOverviewBase.call(this, model);
|
| - this._uiUtils = uiUtils;
|
| this.element.id = "timeline-overview-memory";
|
|
|
| this._heapSizeLabel = this.element.createChild("div", "memory-graph-label");
|
| @@ -65,13 +63,12 @@ WebInspector.TimelineMemoryOverview.prototype = {
|
| var minUsedHeapSize = 100000000000;
|
| var minTime = this._model.minimumRecordTime();
|
| var maxTime = this._model.maximumRecordTime();
|
| - var uiUtils = this._uiUtils;
|
| /**
|
| * @param {!WebInspector.TimelineModel.Record} record
|
| */
|
| function calculateMinMaxSizes(record)
|
| {
|
| - var counters = uiUtils.countersForRecord(record);
|
| + var counters = WebInspector.TimelineUIUtils.isCoalescable.countersForRecord(record);
|
| if (!counters || !counters.jsHeapSizeUsed)
|
| return;
|
| maxUsedHeapSize = Math.max(maxUsedHeapSize, counters.jsHeapSizeUsed);
|
| @@ -93,7 +90,7 @@ WebInspector.TimelineMemoryOverview.prototype = {
|
| */
|
| function buildHistogram(record)
|
| {
|
| - var counters = uiUtils.countersForRecord(record);
|
| + var counters = WebInspector.TimelineUIUtils.isCoalescable.countersForRecord(record);
|
| if (!counters || !counters.jsHeapSizeUsed)
|
| return;
|
| var x = Math.round((record.endTime() - minTime) * xFactor);
|
|
|