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 45dd1abd5d0d3315b3bd21269d6d2da2274e7e0d..1e494b567078dbeae9e3188e76762495b48322c5 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 |
@@ -124,10 +124,10 @@ Polymer({ |
// the timeline view by sending a selectionChange event. |
var latencySlices = []; |
this.model_.getAllThreads().forEach(function(thread) { |
- thread.iterateAllEvents(function(event) { |
+ for (var event of thread.getDescendantEvents()) { |
if (event.title.indexOf('InputLatency:') === 0) |
latencySlices.push(event); |
- }); |
+ } |
}); |
latencySlices = tr.model.helpers.getSlicesIntersectingRange( |
r, latencySlices); |