| Index: tracing/tracing/model/helpers/chrome_browser_helper.html
|
| diff --git a/tracing/tracing/model/helpers/chrome_browser_helper.html b/tracing/tracing/model/helpers/chrome_browser_helper.html
|
| index 0e6d295a471f1639c06528ca317fe0c579a3ee9a..f1f0a438e1536ed61386ba6a07b094dba62bc12d 100644
|
| --- a/tracing/tracing/model/helpers/chrome_browser_helper.html
|
| +++ b/tracing/tracing/model/helpers/chrome_browser_helper.html
|
| @@ -57,16 +57,14 @@ tr.exportTo('tr.model.helpers', function() {
|
|
|
| get hasLatencyEvents() {
|
| var hasLatency = false;
|
| - this.modelHelper.model.getAllThreads().some(function(thread) {
|
| - thread.iterateAllEvents(function(event) {
|
| + for (var thread of this.modelHelper.model.getAllThreads())
|
| + for (var event of thread.getDescendantEvents()) {
|
| if (!event.isTopLevel)
|
| - return;
|
| + continue;
|
| if (!(event instanceof tr.e.cc.InputLatencyAsyncSlice))
|
| - return;
|
| + continue;
|
| hasLatency = true;
|
| - });
|
| - return hasLatency;
|
| - });
|
| + }
|
| return hasLatency;
|
| },
|
|
|
| @@ -81,10 +79,9 @@ tr.exportTo('tr.model.helpers', function() {
|
| getAllAsyncSlicesMatching: function(pred, opt_this) {
|
| var events = [];
|
| this.iterAllThreads(function(thread) {
|
| - thread.iterateAllEvents(function(slice) {
|
| + for (var slice of thread.getDescendantEvents())
|
| if (pred.call(opt_this, slice))
|
| events.push(slice);
|
| - });
|
| });
|
| return events;
|
| },
|
|
|