OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2013 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/ui/analysis/analysis_sub_view.html"> | 9 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html"> |
10 <link rel="import" href="/tracing/ui/analysis/multi_event_summary_table.html"> | 10 <link rel="import" href="/tracing/ui/analysis/multi_event_summary_table.html"> |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 return this.eventsHaveSubRows_; | 145 return this.eventsHaveSubRows_; |
146 }, | 146 }, |
147 | 147 |
148 set eventsHaveSubRows(eventsHaveSubRows) { | 148 set eventsHaveSubRows(eventsHaveSubRows) { |
149 this.eventsHaveSubRows_ = eventsHaveSubRows; | 149 this.eventsHaveSubRows_ = eventsHaveSubRows; |
150 if (this.isAttached) this.updateContents_(); | 150 if (this.isAttached) this.updateContents_(); |
151 }, | 151 }, |
152 | 152 |
153 buildHistogram_(selectedKey) { | 153 buildHistogram_(selectedKey) { |
154 var leftBoundary = Number.MAX_VALUE; | 154 var leftBoundary = Number.MAX_VALUE; |
155 var rightBoundary = tr.b.Statistics.percentile( | 155 var rightBoundary = tr.b.math.Statistics.percentile( |
156 this.currentSelection_, 0.95, | 156 this.currentSelection_, 0.95, |
157 function(value) { | 157 function(value) { |
158 leftBoundary = Math.min(leftBoundary, value[selectedKey]); | 158 leftBoundary = Math.min(leftBoundary, value[selectedKey]); |
159 return value[selectedKey]; | 159 return value[selectedKey]; |
160 }); | 160 }); |
161 | 161 |
162 if (leftBoundary === rightBoundary) rightBoundary += 1; | 162 if (leftBoundary === rightBoundary) rightBoundary += 1; |
163 var histogram = new tr.v.Histogram( | 163 var histogram = new tr.v.Histogram( |
164 '', | 164 '', |
165 tr.b.Unit.byName.timeDurationInMs, | 165 tr.b.Unit.byName.timeDurationInMs, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 } else { | 202 } else { |
203 this.$.radioPicker.style.display = 'none'; | 203 this.$.radioPicker.style.display = 'none'; |
204 this.$.histogramContainer.style.display = 'none'; | 204 this.$.histogramContainer.style.display = 'none'; |
205 } | 205 } |
206 } | 206 } |
207 }); | 207 }); |
208 | 208 |
209 return {}; | 209 return {}; |
210 }); | 210 }); |
211 </script> | 211 </script> |
OLD | NEW |