| 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);
|
|
|
|
|