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

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

Issue 212843003: DevTools: Add TimelinePowerGraph (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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/CountersGraph.js ('k') | Source/devtools/front_end/TimelinePanel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/MemoryCountersGraph.js
diff --git a/Source/devtools/front_end/MemoryCountersGraph.js b/Source/devtools/front_end/MemoryCountersGraph.js
index d54441cfc41fe7c56dd38fd74420dcca50be9367..0b0237c18d95034850b12ad7eb63f98e7948f9a7 100644
--- a/Source/devtools/front_end/MemoryCountersGraph.js
+++ b/Source/devtools/front_end/MemoryCountersGraph.js
@@ -72,5 +72,13 @@ WebInspector.MemoryCountersGraph.prototype = {
this.scheduleRefresh();
},
+ refreshRecords: function()
+ {
+ this.reset();
+ var records = this._model.records();
+ for (var i = 0; i < records.length; ++i)
+ this.addRecord(records[i]);
+ },
+
__proto__: WebInspector.CountersGraph.prototype
}
« no previous file with comments | « Source/devtools/front_end/CountersGraph.js ('k') | Source/devtools/front_end/TimelinePanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698