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"> | 8 <link rel="import" href="/tracing/base/iteration_helpers.html"> |
9 <link rel="import" href="/tracing/model/container_memory_dump.html"> | 9 <link rel="import" href="/tracing/model/container_memory_dump.html"> |
10 <link rel="import" href="/tracing/ui/analysis/analysis_link.html"> | 10 <link rel="import" href="/tracing/ui/analysis/analysis_link.html"> |
11 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html"> | 11 <link rel="import" href="/tracing/ui/analysis/analysis_sub_view.html"> |
12 <link rel="import" href="/tracing/ui/analysis/memory_dump_header_pane.html"> | 12 <link rel="import" href="/tracing/ui/analysis/memory_dump_header_pane.html"> |
13 <link rel="import" href="/tracing/ui/analysis/stacked_pane_view.html"> | 13 <link rel="import" href="/tracing/ui/analysis/stacked_pane_view.html"> |
14 <link rel="import" href="/tracing/ui/base/dom_helpers.html"> | 14 <link rel="import" href="/tracing/ui/base/dom_helpers.html"> |
15 <link rel="import" href="/tracing/value/ui/scalar_span.html"> | 15 <link rel="import" href="/tracing/value/ui/scalar_span.html"> |
16 <link rel="import" href="/tracing/value/unit.html"> | 16 <link rel="import" href="/tracing/value/unit.html"> |
17 | 17 |
18 <dom-module id='tr-ui-a-container-memory-dump-sub-view'> | 18 <dom-module id='tr-ui-a-container-memory-dump-sub-view'> |
19 <template> | 19 <template> |
20 <div id="content"></div> | 20 <div id="content"></div> |
21 </template> | 21 </template> |
22 </dom-module> | 22 </dom-module> |
23 <script> | 23 <script> |
24 'use strict'; | 24 'use strict'; |
25 | 25 |
26 tr.exportTo('tr.ui.analysis', function() { | 26 tr.exportTo('tr.ui.analysis', function() { |
27 | 27 |
28 Polymer({ | 28 Polymer({ |
29 is: 'tr-ui-a-container-memory-dump-sub-view', | 29 is: 'tr-ui-a-container-memory-dump-sub-view', |
30 behaviors: [tr.ui.analysis.behaviors.AnalysisSubView], | 30 behaviors: [tr.ui.analysis.AnalysisSubView], |
31 | 31 |
32 set selection(selection) { | 32 set selection(selection) { |
33 if (selection === undefined) { | 33 if (selection === undefined) { |
34 this.currentSelection_ = undefined; | 34 this.currentSelection_ = undefined; |
35 this.dumpsByContainerName_ = undefined; | 35 this.dumpsByContainerName_ = undefined; |
36 this.updateContents_(); | 36 this.updateContents_(); |
37 return; | 37 return; |
38 } | 38 } |
39 | 39 |
40 // Check that the selection contains only container memory dumps. | 40 // Check that the selection contains only container memory dumps. |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 table.tableRows = rows; | 159 table.tableRows = rows; |
160 table.showHeader = false; | 160 table.showHeader = false; |
161 table.rebuild(); | 161 table.rebuild(); |
162 Polymer.dom(this.$.content).appendChild(table); | 162 Polymer.dom(this.$.content).appendChild(table); |
163 } | 163 } |
164 }); | 164 }); |
165 | 165 |
166 return {}; | 166 return {}; |
167 }); | 167 }); |
168 </script> | 168 </script> |
OLD | NEW |