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

Unified Diff: tracing/tracing/model/helpers/chrome_browser_helper.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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/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;
},
« no previous file with comments | « tracing/tracing/model/helpers/android_app.html ('k') | tracing/tracing/model/helpers/chrome_process_helper.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698