| 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/utils.html"> | 8 <link rel="import" href="/tracing/base/utils.html"> |
| 9 <link rel="import" href="/tracing/value/diagnostics/diagnostic.html"> | 9 <link rel="import" href="/tracing/value/diagnostics/diagnostic.html"> |
| 10 | 10 |
| 11 <script> | 11 <script> |
| 12 'use strict'; | 12 'use strict'; |
| 13 | 13 |
| 14 tr.exportTo('tr.v.d', function() { | 14 tr.exportTo('tr.v.d', function() { |
| 15 class IterationInfo extends tr.v.d.Diagnostic { | 15 class IterationInfo extends tr.v.d.Diagnostic { |
| 16 constructor(opt_info) { | 16 constructor(opt_info) { |
| 17 super(); | 17 super(); |
| 18 | 18 |
| 19 this.benchmarkName_ = ''; | 19 this.benchmarkName_ = ''; |
| 20 this.benchmarkStart_ = undefined; | 20 this.benchmarkStart_ = undefined; |
| 21 this.label_ = ''; | 21 this.label_ = ''; |
| 22 this.legacyTIRLabel_ = ''; | |
| 23 this.osVersion_ = ''; | 22 this.osVersion_ = ''; |
| 24 this.productVersion_ = ''; | 23 this.productVersion_ = ''; |
| 25 this.storyDisplayName_ = ''; | 24 this.storyDisplayName_ = ''; |
| 26 this.storyGroupingKeys_ = {}; | 25 this.storyGroupingKeys_ = {}; |
| 27 this.storyRepeatCounter_ = undefined; | 26 this.storyRepeatCounter_ = undefined; |
| 28 this.storyUrl_ = ''; | 27 this.storyUrl_ = ''; |
| 29 this.storysetRepeatCounter_ = undefined; | 28 this.storysetRepeatCounter_ = undefined; |
| 30 | 29 |
| 31 if (opt_info) | 30 if (opt_info) |
| 32 this.addInfo(opt_info); | 31 this.addInfo(opt_info); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 54 if (info.storyDisplayName) | 53 if (info.storyDisplayName) |
| 55 this.storyDisplayName_ = info.storyDisplayName; | 54 this.storyDisplayName_ = info.storyDisplayName; |
| 56 if (info.storyGroupingKeys) | 55 if (info.storyGroupingKeys) |
| 57 this.storyGroupingKeys_ = info.storyGroupingKeys; | 56 this.storyGroupingKeys_ = info.storyGroupingKeys; |
| 58 if (info.storyRepeatCounter !== undefined) | 57 if (info.storyRepeatCounter !== undefined) |
| 59 this.storyRepeatCounter_ = info.storyRepeatCounter; | 58 this.storyRepeatCounter_ = info.storyRepeatCounter; |
| 60 if (info.storyUrl) | 59 if (info.storyUrl) |
| 61 this.storyUrl_ = info.storyUrl; | 60 this.storyUrl_ = info.storyUrl; |
| 62 if (info.storysetRepeatCounter !== undefined) | 61 if (info.storysetRepeatCounter !== undefined) |
| 63 this.storysetRepeatCounter_ = info.storysetRepeatCounter; | 62 this.storysetRepeatCounter_ = info.storysetRepeatCounter; |
| 64 if (info.legacyTIRLabel) { | |
| 65 this.legacyTIRLabel_ = info.legacyTIRLabel; | |
| 66 } | |
| 67 | 63 |
| 68 // From platform tracing metadata | 64 // From platform tracing metadata |
| 69 if (info['os-version']) | 65 if (info['os-version']) |
| 70 this.osVersion_ = info['os-version']; | 66 this.osVersion_ = info['os-version']; |
| 71 if (info['product-version']) | 67 if (info['product-version']) |
| 72 this.productVersion_ = info['product-version']; | 68 this.productVersion_ = info['product-version']; |
| 73 } | 69 } |
| 74 | 70 |
| 75 addToValue(value) { | 71 addToValue(value) { |
| 76 value.diagnostics.set(IterationInfo.NAME, this); | 72 value.diagnostics.set(IterationInfo.NAME, this); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 } | 115 } |
| 120 | 116 |
| 121 get benchmarkName() { | 117 get benchmarkName() { |
| 122 return this.benchmarkName_; | 118 return this.benchmarkName_; |
| 123 } | 119 } |
| 124 | 120 |
| 125 get label() { | 121 get label() { |
| 126 return this.label_; | 122 return this.label_; |
| 127 } | 123 } |
| 128 | 124 |
| 129 get legacyTIRLabel() { | |
| 130 return this.legacyTIRLabel_; | |
| 131 } | |
| 132 | |
| 133 set legacyTIRLabel(tir) { | |
| 134 this.legacyTIRLabel_ = tir; | |
| 135 } | |
| 136 | |
| 137 get storyGroupingKeys() { | 125 get storyGroupingKeys() { |
| 138 return this.storyGroupingKeys_; | 126 return this.storyGroupingKeys_; |
| 139 } | 127 } |
| 140 | 128 |
| 141 get storyDisplayName() { | 129 get storyDisplayName() { |
| 142 return this.storyDisplayName_; | 130 return this.storyDisplayName_; |
| 143 } | 131 } |
| 144 | 132 |
| 145 get storyUrl() { | 133 get storyUrl() { |
| 146 return this.storyUrl_; | 134 return this.storyUrl_; |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 200 |
| 213 tr.v.d.Diagnostic.register(IterationInfo, { | 201 tr.v.d.Diagnostic.register(IterationInfo, { |
| 214 elementName: 'tr-v-ui-iteration-info-span' | 202 elementName: 'tr-v-ui-iteration-info-span' |
| 215 }); | 203 }); |
| 216 | 204 |
| 217 return { | 205 return { |
| 218 IterationInfo: IterationInfo | 206 IterationInfo: IterationInfo |
| 219 }; | 207 }; |
| 220 }); | 208 }); |
| 221 </script> | 209 </script> |
| OLD | NEW |