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

Side by Side Diff: Source/devtools/front_end/MemoryStatistics.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 */ 260 */
261 _onRecordAdded: function(event) 261 _onRecordAdded: function(event)
262 { 262 {
263 throw new Error("Not implemented"); 263 throw new Error("Not implemented");
264 }, 264 },
265 265
266 _onRecordsCleared: function() 266 _onRecordsCleared: function()
267 { 267 {
268 for (var i = 0; i < this._counters.length; ++i) 268 for (var i = 0; i < this._counters.length; ++i)
269 this._counters[i].reset(); 269 this._counters[i].reset();
270
271 for (var i = 0; i < this._counterUI.length; ++i)
272 this._counterUI[i].reset();
273
270 this.refresh(); 274 this.refresh();
271 }, 275 },
272 276
273 _resize: function() 277 _resize: function()
274 { 278 {
275 var parentElement = this._canvas.parentElement; 279 var parentElement = this._canvas.parentElement;
276 this._canvas.width = parentElement.clientWidth; 280 this._canvas.width = parentElement.clientWidth;
277 this._canvas.height = parentElement.clientHeight; 281 this._canvas.height = parentElement.clientHeight;
278 this.refresh(); 282 this.refresh();
279 }, 283 },
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 }, 387 },
384 388
385 _clear: function() 389 _clear: function()
386 { 390 {
387 var ctx = this._canvas.getContext("2d"); 391 var ctx = this._canvas.getContext("2d");
388 ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height); 392 ctx.clearRect(0, 0, ctx.canvas.width, ctx.canvas.height);
389 }, 393 },
390 394
391 __proto__: WebInspector.SplitView.prototype 395 __proto__: WebInspector.SplitView.prototype
392 } 396 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/CountersGraph.js ('k') | Source/devtools/front_end/TimelineMemoryOverview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698