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

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

Issue 337123002: Support counter graphs in Timeline based on trace events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/bindings/v8/V8GCController.cpp ('k') | Source/devtools/front_end/timeline/TimelineMemoryOverview.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/timeline/MemoryCountersGraph.js
diff --git a/Source/devtools/front_end/timeline/MemoryCountersGraph.js b/Source/devtools/front_end/timeline/MemoryCountersGraph.js
index 6244847fa239c536d2e7cf74dedda1818b7fda85..6452dd907bca543952e628c86f80bfd2a02ebc8e 100644
--- a/Source/devtools/front_end/timeline/MemoryCountersGraph.js
+++ b/Source/devtools/front_end/timeline/MemoryCountersGraph.js
@@ -69,9 +69,9 @@ WebInspector.MemoryCountersGraph.prototype = {
*/
function addStatistics(record)
{
- if (record.type() !== WebInspector.TimelineModel.RecordType.UpdateCounters)
+ var counters = record.counters();
+ if (!counters)
return;
- var counters = record.data();
for (var name in counters) {
var counter = this._countersByName[name];
if (counter)
« no previous file with comments | « Source/bindings/v8/V8GCController.cpp ('k') | Source/devtools/front_end/timeline/TimelineMemoryOverview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698