| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2015 The Chromium Authors. All rights reserved. | 3 Copyright (c) 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"> | 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/analysis/single_event_sub_view.html"> | 10 <link rel="import" href="/tracing/ui/analysis/single_event_sub_view.html"> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 <div id="events"> | 30 <div id="events"> |
| 31 <tr-ui-a-user-expectation-related-samples-table id="relatedSamples"></tr-u
i-a-user-expectation-related-samples-table> | 31 <tr-ui-a-user-expectation-related-samples-table id="relatedSamples"></tr-u
i-a-user-expectation-related-samples-table> |
| 32 </div> | 32 </div> |
| 33 </template> | 33 </template> |
| 34 </dom-module> | 34 </dom-module> |
| 35 <script> | 35 <script> |
| 36 'use strict'; | 36 'use strict'; |
| 37 | 37 |
| 38 Polymer({ | 38 Polymer({ |
| 39 is: 'tr-ui-a-single-user-expectation-sub-view', | 39 is: 'tr-ui-a-single-user-expectation-sub-view', |
| 40 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], | 40 behaviors: [tr.ui.analysis.AnalysisSubView], |
| 41 | 41 |
| 42 created: function() { | 42 created: function() { |
| 43 this.currentSelection_ = undefined; | 43 this.currentSelection_ = undefined; |
| 44 }, | 44 }, |
| 45 | 45 |
| 46 get selection() { | 46 get selection() { |
| 47 return this.currentSelection_; | 47 return this.currentSelection_; |
| 48 }, | 48 }, |
| 49 | 49 |
| 50 set selection(selection) { | 50 set selection(selection) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 74 event.rows.push({ | 74 event.rows.push({ |
| 75 name: 'Total CPU', | 75 name: 'Total CPU', |
| 76 value: tr.v.ui.createScalarSpan(ue.totalCpuMs, { | 76 value: tr.v.ui.createScalarSpan(ue.totalCpuMs, { |
| 77 unit: tr.v.Unit.byName.timeDurationInMs | 77 unit: tr.v.Unit.byName.timeDurationInMs |
| 78 }) | 78 }) |
| 79 }); | 79 }); |
| 80 } | 80 } |
| 81 } | 81 } |
| 82 }); | 82 }); |
| 83 </script> | 83 </script> |
| OLD | NEW |