Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2135)

Unified Diff: Source/devtools/front_end/TimelineMemoryOverview.js

Issue 163523002: Clear button doesn't clear everything in memory section. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/MemoryStatistics.js ('k') | Source/devtools/front_end/TimelineView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/devtools/front_end/MemoryStatistics.js ('k') | Source/devtools/front_end/TimelineView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698