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

Unified Diff: perf_insights/perf_insights/mappers/thread_grouping_test.html

Issue 2083213002: Change call-sites in trace viewer to use generators instead of iteration functions. (Closed) Base URL: git@github.com:catapult-project/catapult@master
Patch Set: fix break/continue Created 4 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
Index: perf_insights/perf_insights/mappers/thread_grouping_test.html
diff --git a/perf_insights/perf_insights/mappers/thread_grouping_test.html b/perf_insights/perf_insights/mappers/thread_grouping_test.html
index 59b3bedba21a001de74636df2d264ba5bc885ed4..dff08455dd55f29a3804bb6d453bc6a4e1d6baf9 100644
--- a/perf_insights/perf_insights/mappers/thread_grouping_test.html
+++ b/perf_insights/perf_insights/mappers/thread_grouping_test.html
@@ -41,10 +41,10 @@ tr.b.unittest.testSuite(function() {
tg.autoInitUsingHelpers(m);
var allSlices = new tr.model.EventSet();
- m.iterateAllEvents(function(e) {
+ for (var e of m.descendantEvents()) {
charliea (OOO until 10-5) 2016/06/29 18:08:44 nit: no need for braces here
alexandermont 2016/06/29 20:47:11 Done
if (e instanceof tr.model.Slice)
allSlices.push(e);
- });
+ }
var groups = tg.divideEventSetIntoSubGroups(allSlices);
var numGrouped = 0;
tr.b.iterItems(groups, function(groupName, eventSet) {

Powered by Google App Engine
This is Rietveld 408576698