Index: Source/devtools/front_end/TimelineMemoryOverview.js |
diff --git a/Source/devtools/front_end/TimelineMemoryOverview.js b/Source/devtools/front_end/TimelineMemoryOverview.js |
index 3104e2a4aefeb14f928a3a49fbb26652ef52aee9..154fadd929b8f8a87b06dbfbadde0cb8d8a5084f 100644 |
--- a/Source/devtools/front_end/TimelineMemoryOverview.js |
+++ b/Source/devtools/front_end/TimelineMemoryOverview.js |
@@ -43,13 +43,21 @@ WebInspector.TimelineMemoryOverview = function(model) |
} |
WebInspector.TimelineMemoryOverview.prototype = { |
+ resetHeapSizeLabels: function() |
+ { |
+ this._maxHeapSizeLabel.textContent = ""; |
+ this._minHeapSizeLabel.textContent = ""; |
+ }, |
+ |
update: function() |
{ |
this.resetCanvas(); |
var records = this._model.records; |
- if (!records.length) |
+ if (!records.length) { |
+ this.resetHeapSizeLabels(); |
return; |
+ } |
const lowerOffset = 3; |
var maxUsedHeapSize = 0; |