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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js

Issue 2673733003: DevTools: Speed up timeline aggregated tree building. (Closed)
Patch Set: Created 3 years, 11 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
Index: third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js
index cc63fedc203e39ed3bbbc6b28a0a5fbf42674118..e2ab4794e875cef26f7c24bb16336c85eb5ee178 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/timeline-test.js
@@ -226,8 +226,7 @@ InspectorTest.walkTimelineEventTreeUnderNode = function(callback, root, level)
var event = root.event;
if (event)
callback(event, level)
- var children = root.children ? root.children.values() : [];
- for (var child of children)
+ for (var child of root.children().values())
InspectorTest.walkTimelineEventTreeUnderNode(callback, child, (level || 0) + 1);
}

Powered by Google App Engine
This is Rietveld 408576698