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/iteration_helpers.html"> | 8 <link rel="import" href="/tracing/base/iteration_helpers.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/base/table.html"> | 10 <link rel="import" href="/tracing/ui/base/table.html"> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 }, | 42 }, |
43 { | 43 { |
44 title: 'Value', | 44 title: 'Value', |
45 width: '100%', | 45 width: '100%', |
46 value: function(row) { return row.value; } | 46 value: function(row) { return row.value; } |
47 } | 47 } |
48 ]; | 48 ]; |
49 | 49 |
50 Polymer({ | 50 Polymer({ |
51 is: 'tr-ui-a-counter-sample-sub-view', | 51 is: 'tr-ui-a-counter-sample-sub-view', |
52 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], | 52 behaviors: [tr.ui.analysis.AnalysisSubView], |
53 | 53 |
54 ready: function() { | 54 ready: function() { |
55 this.currentSelection_ = undefined; | 55 this.currentSelection_ = undefined; |
56 this.$.table.tableColumns = COUNTER_SAMPLE_TABLE_COLUMNS; | 56 this.$.table.tableColumns = COUNTER_SAMPLE_TABLE_COLUMNS; |
57 }, | 57 }, |
58 | 58 |
59 get selection() { | 59 get selection() { |
60 return this.currentSelection_; | 60 return this.currentSelection_; |
61 }, | 61 }, |
62 | 62 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 return samples.map(function(sample) { | 113 return samples.map(function(sample) { |
114 return { | 114 return { |
115 start: sample.timestamp, | 115 start: sample.timestamp, |
116 value: sample.value | 116 value: sample.value |
117 }; | 117 }; |
118 }); | 118 }); |
119 } | 119 } |
120 }); | 120 }); |
121 })(); | 121 })(); |
122 </script> | 122 </script> |
OLD | NEW |