Index: Source/devtools/front_end/TimelineOverviewPane.js |
diff --git a/Source/devtools/front_end/TimelineOverviewPane.js b/Source/devtools/front_end/TimelineOverviewPane.js |
index 40d9a6b04dc76e611789909866539231038edf7d..a857f8d93b56403b2ec8f00e283e9ea064a476a4 100644 |
--- a/Source/devtools/front_end/TimelineOverviewPane.js |
+++ b/Source/devtools/front_end/TimelineOverviewPane.js |
@@ -463,12 +463,15 @@ WebInspector.TimelineMemoryOverview = function(model) |
WebInspector.TimelineMemoryOverview.prototype = { |
update: function() |
{ |
+ this._resetCanvas(); |
+ |
+ var ctx = this._context; |
+ this._clear(ctx); |
+ |
var records = this._model.records; |
if (!records.length) |
return; |
- this._resetCanvas(); |
- |
const lowerOffset = 3; |
var maxUsedHeapSize = 0; |
var minUsedHeapSize = 100000000000; |
@@ -494,8 +497,6 @@ WebInspector.TimelineMemoryOverview.prototype = { |
histogram[x] = Math.max(histogram[x] || 0, y); |
}); |
eustas
2013/07/24 06:08:20
Remove second empty line, please.
|
- var ctx = this._context; |
- this._clear(ctx); |
height++; // +1 so that the border always fit into the canvas area. |