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

Unified Diff: tracing/tracing/ui/extras/side_panel/input_latency_side_panel.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 nits, rebase 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: tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html
diff --git a/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html b/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html
index 2b42df37e5161cc4e91acbfb55eb147846865062..4b3a9a5917bb0979322a311355860ab10072b0df 100644
--- a/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html
+++ b/tracing/tracing/ui/extras/side_panel/input_latency_side_panel.html
@@ -119,12 +119,10 @@ found in the LICENSE file.
// Based on the brushed range, update the selection of LatencyInfo in
// the timeline view by sending a selectionChange event.
var latencySlices = [];
- this.model_.getAllThreads().forEach(function(thread) {
- thread.iterateAllEvents(function(event) {
+ for (var thread of this.model_.getAllThreads())
+ for (var event of thread.getDescendantEvents())
if (event.title.indexOf('InputLatency:') === 0)
latencySlices.push(event);
- });
- });
latencySlices = tr.model.helpers.getSlicesIntersectingRange(
r, latencySlices);
« no previous file with comments | « tracing/tracing/ui/extras/chrome/cc/layer_tree_quad_stack_view.html ('k') | tracing/tracing/ui/tracks/cpu_usage_track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698