OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright 2015 The Chromium Authors. All rights reserved. | 3 Copyright 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"> | |
9 <link rel="import" href="/tracing/base/unit.html"> | 8 <link rel="import" href="/tracing/base/unit.html"> |
10 <link rel="import" href="/tracing/base/unit_scale.html"> | 9 <link rel="import" href="/tracing/base/unit_scale.html"> |
| 10 <link rel="import" href="/tracing/base/utils.html"> |
11 <link rel="import" href="/tracing/model/event_set.html"> | 11 <link rel="import" href="/tracing/model/event_set.html"> |
12 <link rel="import" href="/tracing/ui/base/table.html"> | 12 <link rel="import" href="/tracing/ui/base/table.html"> |
13 | 13 |
14 <dom-module id='tr-ui-a-power-sample-summary-table'> | 14 <dom-module id='tr-ui-a-power-sample-summary-table'> |
15 <template> | 15 <template> |
16 <style> | 16 <style> |
17 tr-ui-b-table { | 17 tr-ui-b-table { |
18 font-size: 12px; | 18 font-size: 12px; |
19 } | 19 } |
20 </style> | 20 </style> |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 getEnergyConsumedInJ() { | 127 getEnergyConsumedInJ() { |
128 if (this.samples.length < 2) return 'N/A'; | 128 if (this.samples.length < 2) return 'N/A'; |
129 | 129 |
130 const bounds = this.samples.bounds; | 130 const bounds = this.samples.bounds; |
131 const series = tr.b.getFirstElement(this.samples).series; | 131 const series = tr.b.getFirstElement(this.samples).series; |
132 return series.getEnergyConsumedInJ(bounds.min, bounds.max); | 132 return series.getEnergyConsumedInJ(bounds.min, bounds.max); |
133 } | 133 } |
134 }); | 134 }); |
135 </script> | 135 </script> |
OLD | NEW |