| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright 2016 The Chromium Authors. All rights reserved. | 3 Copyright 2016 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/iteration_helpers.html"> |
| 9 <link rel="import" href="/tracing/value/diagnostics/diagnostic.html"> | 9 <link rel="import" href="/tracing/value/diagnostics/diagnostic.html"> |
| 10 <link rel="import" href="/tracing/value/diagnostics/histogram_ref.html"> | 10 <link rel="import" href="/tracing/value/diagnostics/histogram_ref.html"> |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 */ | 107 */ |
| 108 add(hist) { | 108 add(hist) { |
| 109 this.set(hist.name, hist); | 109 this.set(hist.name, hist); |
| 110 } | 110 } |
| 111 | 111 |
| 112 get length() { | 112 get length() { |
| 113 return this.histogramsByName_.size; | 113 return this.histogramsByName_.size; |
| 114 } | 114 } |
| 115 | 115 |
| 116 * [Symbol.iterator]() { | 116 * [Symbol.iterator]() { |
| 117 for (let pair of this.histogramsByName_) | 117 for (let pair of this.histogramsByName_) { |
| 118 yield pair; | 118 yield pair; |
| 119 } |
| 119 } | 120 } |
| 120 | 121 |
| 121 /** | 122 /** |
| 122 * Resolve all HistogramRefs into Histograms by looking up their guids in | 123 * Resolve all HistogramRefs into Histograms by looking up their guids in |
| 123 * |histograms|. | 124 * |histograms|. |
| 124 * If a Histogram cannot be found and |opt_required| is true, then throw an | 125 * If a Histogram cannot be found and |opt_required| is true, then throw an |
| 125 * Error. | 126 * Error. |
| 126 * If a Histogram cannot be found and |opt_required| is false, then the | 127 * If a Histogram cannot be found and |opt_required| is false, then the |
| 127 * HistogramRef will remain a HistogramRef. | 128 * HistogramRef will remain a HistogramRef. |
| 128 * | 129 * |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 162 |
| 162 tr.v.d.Diagnostic.register(RelatedHistogramMap, { | 163 tr.v.d.Diagnostic.register(RelatedHistogramMap, { |
| 163 elementName: 'tr-v-ui-related-histogram-map-span' | 164 elementName: 'tr-v-ui-related-histogram-map-span' |
| 164 }); | 165 }); |
| 165 | 166 |
| 166 return { | 167 return { |
| 167 RelatedHistogramMap, | 168 RelatedHistogramMap, |
| 168 }; | 169 }; |
| 169 }); | 170 }); |
| 170 </script> | 171 </script> |
| OLD | NEW |