| 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/unit.html"> | 8 <link rel="import" href="/tracing/base/unit.html"> |
| 9 <link rel="import" href="/tracing/ui/analysis/memory_dump_overview_pane.html"> | 9 <link rel="import" href="/tracing/ui/analysis/memory_dump_overview_pane.html"> |
| 10 <link rel="import" href="/tracing/ui/analysis/memory_dump_sub_view_util.html"> | 10 <link rel="import" href="/tracing/ui/analysis/memory_dump_sub_view_util.html"> |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 document.createTextNode(ELLIPSIS)); | 139 document.createTextNode(ELLIPSIS)); |
| 140 Polymer.dom(this.$.label).appendChild(document.createTextNode( | 140 Polymer.dom(this.$.label).appendChild(document.createTextNode( |
| 141 tr.b.Unit.byName.timeStampInMs.format( | 141 tr.b.Unit.byName.timeStampInMs.format( |
| 142 this.containerMemoryDumps_[containerDumpCount - 1].start))); | 142 this.containerMemoryDumps_[containerDumpCount - 1].start))); |
| 143 } | 143 } |
| 144 }, | 144 }, |
| 145 | 145 |
| 146 updateAggregationModeSelector_: function() { | 146 updateAggregationModeSelector_: function() { |
| 147 var displayStyle; | 147 var displayStyle; |
| 148 if (this.containerMemoryDumps_ === undefined || | 148 if (this.containerMemoryDumps_ === undefined || |
| 149 this.containerMemoryDumps_.length <= 1) | 149 this.containerMemoryDumps_.length <= 1) { |
| 150 displayStyle = 'none'; | 150 displayStyle = 'none'; |
| 151 else | 151 } else { |
| 152 displayStyle = 'initial'; | 152 displayStyle = 'initial'; |
| 153 } |
| 153 this.$.aggregation_mode_container.style.display = displayStyle; | 154 this.$.aggregation_mode_container.style.display = displayStyle; |
| 154 }, | 155 }, |
| 155 | 156 |
| 156 changeChildPane_: function() { | 157 changeChildPane_: function() { |
| 157 this.childPaneBuilder = function() { | 158 this.childPaneBuilder = function() { |
| 158 if (this.containerMemoryDumps_ === undefined || | 159 if (this.containerMemoryDumps_ === undefined || |
| 159 this.containerMemoryDumps_.length <= 0) | 160 this.containerMemoryDumps_.length <= 0) { |
| 160 return undefined; | 161 return undefined; |
| 162 } |
| 161 | 163 |
| 162 var overviewPane = document.createElement( | 164 var overviewPane = document.createElement( |
| 163 'tr-ui-a-memory-dump-overview-pane'); | 165 'tr-ui-a-memory-dump-overview-pane'); |
| 164 overviewPane.processMemoryDumps = this.containerMemoryDumps_.map( | 166 overviewPane.processMemoryDumps = this.containerMemoryDumps_.map( |
| 165 function(containerDump) { | 167 function(containerDump) { |
| 166 return containerDump.processMemoryDumps; | 168 return containerDump.processMemoryDumps; |
| 167 }); | 169 }); |
| 168 overviewPane.aggregationMode = this.aggregationMode; | 170 overviewPane.aggregationMode = this.aggregationMode; |
| 169 return overviewPane; | 171 return overviewPane; |
| 170 }.bind(this); | 172 }.bind(this); |
| 171 } | 173 } |
| 172 }); | 174 }); |
| 173 | 175 |
| 174 return {}; | 176 return {}; |
| 175 }); | 177 }); |
| 176 </script> | 178 </script> |
| OLD | NEW |