Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: tracing/tracing/ui/analysis/memory_dump_heap_details_path_view.html

Issue 2373913003: [tracing] Navigate to parent node in heap dump UI upon pressing backspace (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tracing/tracing/ui/analysis/memory_dump_heap_details_breakdown_view.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/color_scheme.html"> 8 <link rel="import" href="/tracing/base/color_scheme.html">
9 <link rel="import" href="/tracing/base/event.html"> 9 <link rel="import" href="/tracing/base/event.html">
10 <link rel="import" href="/tracing/ui/analysis/memory_dump_heap_details_util.html "> 10 <link rel="import" href="/tracing/ui/analysis/memory_dump_heap_details_util.html ">
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 this.aggregationMode_ = aggregationMode; 98 this.aggregationMode_ = aggregationMode;
99 this.scheduleRebuild_(); 99 this.scheduleRebuild_();
100 }, 100 },
101 101
102 onRebuild_: function() { 102 onRebuild_: function() {
103 if (this.selectedNode_ === undefined) { 103 if (this.selectedNode_ === undefined) {
104 this.$.table.clear(); 104 this.$.table.clear();
105 return; 105 return;
106 } 106 }
107 107
108 if (this.$.table.tableRows.indexOf(this.selectedNode_) !== -1) {
hjd 2016/10/03 09:33:21 this.$.table.tableRows.includes(this.selectedNode_
petrcermak 2016/10/03 09:40:25 Done. I was not aware of that method :-)
109 this.$.table.selectedTableRow = this.selectedNode_;
110 return;
111 }
112
108 this.$.table.selectionMode = tr.ui.b.TableFormat.SelectionMode.ROW; 113 this.$.table.selectionMode = tr.ui.b.TableFormat.SelectionMode.ROW;
109 this.$.table.userCanModifySortOrder = false; 114 this.$.table.userCanModifySortOrder = false;
110 var rows = this.createRows_(this.selectedNode_); 115 var rows = this.createRows_(this.selectedNode_);
111 this.$.table.tableRows = rows; 116 this.$.table.tableRows = rows;
112 this.$.table.tableColumns = this.createColumns_(rows); 117 this.$.table.tableColumns = this.createColumns_(rows);
113 this.$.table.selectedTableRow = rows[rows.length - 1]; 118 this.$.table.selectedTableRow = rows[rows.length - 1];
114 }, 119 },
115 120
116 createRows_: function(node) { 121 createRows_: function(node) {
117 var rows = []; 122 var rows = [];
(...skipping 17 matching lines...) Expand all
135 }); 140 });
136 tr.ui.analysis.MemoryColumn.spaceEqually(numericColumns); 141 tr.ui.analysis.MemoryColumn.spaceEqually(numericColumns);
137 142
138 return [titleColumn].concat(numericColumns); 143 return [titleColumn].concat(numericColumns);
139 } 144 }
140 }); 145 });
141 146
142 return {}; 147 return {};
143 }); 148 });
144 </script> 149 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/analysis/memory_dump_heap_details_breakdown_view.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698