OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2014 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2014 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/base.html"> | 8 <link rel="import" href="/tracing/base/base.html"> |
9 <link rel="import" href="/tracing/base/iteration_helpers.html"> | 9 <link rel="import" href="/tracing/base/utils.html"> |
10 | 10 |
11 <script> | 11 <script> |
12 'use strict'; | 12 'use strict'; |
13 | 13 |
14 /** | 14 /** |
15 * @fileoverview Provides event merging functionality for grouping/analysis. | 15 * @fileoverview Provides event merging functionality for grouping/analysis. |
16 */ | 16 */ |
17 tr.exportTo('tr.b.math', function() { | 17 tr.exportTo('tr.b.math', function() { |
18 function convertEventsToRanges(events) { | 18 function convertEventsToRanges(events) { |
19 return events.map(function(event) { | 19 return events.map(function(event) { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 return emptyRanges; | 126 return emptyRanges; |
127 } | 127 } |
128 | 128 |
129 return { | 129 return { |
130 convertEventsToRanges, | 130 convertEventsToRanges, |
131 findEmptyRangesBetweenRanges, | 131 findEmptyRangesBetweenRanges, |
132 mergeRanges, | 132 mergeRanges, |
133 }; | 133 }; |
134 }); | 134 }); |
135 </script> | 135 </script> |
OLD | NEW |