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

Unified Diff: tracing/tracing/model/ir_coverage.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/ir_coverage.html
diff --git a/tracing/tracing/model/ir_coverage.html b/tracing/tracing/model/ir_coverage.html
index e4bd3d7e53812442dd43d6a8328e02357257fd33..80cdd387a3cb5d1af1f5d26ab63b70496c1f6b75 100644
--- a/tracing/tracing/model/ir_coverage.html
+++ b/tracing/tracing/model/ir_coverage.html
@@ -28,19 +28,15 @@ tr.exportTo('tr.model', function() {
function getUnassociatedEvents(model, associatedEvents) {
var unassociatedEvents = new tr.model.EventSet();
- model.getAllProcesses().forEach(function(process) {
- for (var tid in process.threads) {
- var thread = process.threads[tid];
- thread.sliceGroup.iterateAllEvents(function(event) {
- // The set of unassociated events contains only events that are not in
- // the set of associated events.
- // Only add event to the set of unassociated events if it is not in
- // the set of associated events.
+ // The set of unassociated events contains only events that are not in
+ // the set of associated events.
+ // Only add event to the set of unassociated events if it is not in
+ // the set of associated events.
+ for (var proc of model.getAllProcesses())
+ for (var thread of tr.b.dictionaryValues(proc.threads))
+ for (var event of thread.sliceGroup.getDescendantEvents())
if (!associatedEvents.contains(event))
unassociatedEvents.push(event);
- });
- }
- });
return unassociatedEvents;
}
« no previous file with comments | « tracing/tracing/model/helpers/chrome_process_helper.html ('k') | tracing/tracing/model/ir_coverage_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698