| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 | 7 |
| 8 <link rel="import" href="/tracing/base/iteration_helpers.html"> | 8 <link rel="import" href="/tracing/base/utils.html"> |
| 9 <link rel="import" href="/tracing/model/event_set.html"> | 9 <link rel="import" href="/tracing/model/event_set.html"> |
| 10 | 10 |
| 11 <script> | 11 <script> |
| 12 'use strict'; | 12 'use strict'; |
| 13 | 13 |
| 14 tr.exportTo('tr.model', function() { | 14 tr.exportTo('tr.model', function() { |
| 15 function getAssociatedEvents(irs) { | 15 function getAssociatedEvents(irs) { |
| 16 const allAssociatedEvents = new tr.model.EventSet(); | 16 const allAssociatedEvents = new tr.model.EventSet(); |
| 17 irs.forEach(function(ir) { | 17 irs.forEach(function(ir) { |
| 18 ir.associatedEvents.forEach(function(event) { | 18 ir.associatedEvents.forEach(function(event) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 }; | 82 }; |
| 83 } | 83 } |
| 84 | 84 |
| 85 return { | 85 return { |
| 86 getIRCoverageFromModel, | 86 getIRCoverageFromModel, |
| 87 getAssociatedEvents, | 87 getAssociatedEvents, |
| 88 getUnassociatedEvents, | 88 getUnassociatedEvents, |
| 89 }; | 89 }; |
| 90 }); | 90 }); |
| 91 </script> | 91 </script> |
| OLD | NEW |