OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 activate: function(heapSnapshotView) | 218 activate: function(heapSnapshotView) |
219 { | 219 { |
220 heapSnapshotView._constructorsView.show(heapSnapshotView._splitView.main
Element()); | 220 heapSnapshotView._constructorsView.show(heapSnapshotView._splitView.main
Element()); |
221 heapSnapshotView._retainmentView.show(heapSnapshotView._splitView.sideba
rElement()); | 221 heapSnapshotView._retainmentView.show(heapSnapshotView._splitView.sideba
rElement()); |
222 heapSnapshotView._splitView.show(heapSnapshotView.element); | 222 heapSnapshotView._splitView.show(heapSnapshotView.element); |
223 heapSnapshotView._filterSelect.visible = true; | 223 heapSnapshotView._filterSelect.visible = true; |
224 heapSnapshotView._classNameFilter.visible = true; | 224 heapSnapshotView._classNameFilter.visible = true; |
225 if (heapSnapshotView._trackingOverviewGrid) { | 225 if (heapSnapshotView._trackingOverviewGrid) { |
226 heapSnapshotView._trackingOverviewGrid.show(heapSnapshotView.element
, heapSnapshotView._splitView.element); | 226 heapSnapshotView._trackingOverviewGrid.show(heapSnapshotView.element
, heapSnapshotView._splitView.element); |
227 heapSnapshotView._trackingOverviewGrid.update(); | 227 heapSnapshotView._trackingOverviewGrid.update(); |
| 228 heapSnapshotView._trackingOverviewGrid._updateGrid(); |
228 } | 229 } |
229 }, | 230 }, |
230 | 231 |
231 /** | 232 /** |
232 * @override | 233 * @override |
233 * @param {!WebInspector.HeapSnapshotView} heapSnapshotView | 234 * @param {!WebInspector.HeapSnapshotView} heapSnapshotView |
234 * @return {?WebInspector.DataGrid} | 235 * @return {?WebInspector.DataGrid} |
235 */ | 236 */ |
236 masterGrid: function(heapSnapshotView) | 237 masterGrid: function(heapSnapshotView) |
237 { | 238 { |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 * @override | 380 * @override |
380 * @param {!WebInspector.HeapSnapshotView} heapSnapshotView | 381 * @param {!WebInspector.HeapSnapshotView} heapSnapshotView |
381 */ | 382 */ |
382 activate: function(heapSnapshotView) | 383 activate: function(heapSnapshotView) |
383 { | 384 { |
384 heapSnapshotView._allocationView.show(this._allocationSplitView.mainElem
ent()); | 385 heapSnapshotView._allocationView.show(this._allocationSplitView.mainElem
ent()); |
385 heapSnapshotView._constructorsView.show(heapSnapshotView._splitView.main
Element()); | 386 heapSnapshotView._constructorsView.show(heapSnapshotView._splitView.main
Element()); |
386 heapSnapshotView._retainmentView.show(heapSnapshotView._splitView.sideba
rElement()); | 387 heapSnapshotView._retainmentView.show(heapSnapshotView._splitView.sideba
rElement()); |
387 heapSnapshotView._splitView.show(this._allocationSplitView.sidebarElemen
t()); | 388 heapSnapshotView._splitView.show(this._allocationSplitView.sidebarElemen
t()); |
388 this._allocationSplitView.show(heapSnapshotView.element); | 389 this._allocationSplitView.show(heapSnapshotView.element); |
| 390 |
| 391 heapSnapshotView._constructorsDataGrid.clear(); |
| 392 var selectedNode = heapSnapshotView._allocationDataGrid.selectedNode; |
| 393 if (selectedNode) |
| 394 heapSnapshotView._constructorsDataGrid.setAllocationNodeId(selectedN
ode.allocationNodeId()); |
389 }, | 395 }, |
390 | 396 |
391 /** | 397 /** |
392 * @override | 398 * @override |
393 * @param {!WebInspector.HeapSnapshotView} heapSnapshotView | 399 * @param {!WebInspector.HeapSnapshotView} heapSnapshotView |
394 */ | 400 */ |
395 deactivate: function(heapSnapshotView) | 401 deactivate: function(heapSnapshotView) |
396 { | 402 { |
397 this._allocationSplitView.detach(); | 403 this._allocationSplitView.detach(); |
398 WebInspector.HeapSnapshotView.Perspective.prototype.deactivate.call(this
, heapSnapshotView); | 404 WebInspector.HeapSnapshotView.Perspective.prototype.deactivate.call(this
, heapSnapshotView); |
(...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2154 if (color) | 2160 if (color) |
2155 swatchDiv.style.backgroundColor = color; | 2161 swatchDiv.style.backgroundColor = color; |
2156 else | 2162 else |
2157 swatchDiv.classList.add("heap-snapshot-stats-empty-swatch"); | 2163 swatchDiv.classList.add("heap-snapshot-stats-empty-swatch"); |
2158 nameDiv.textContent = name; | 2164 nameDiv.textContent = name; |
2159 sizeDiv.textContent = WebInspector.UIString("%s KB", Number.withThousand
sSeparator(Math.round(value / 1024))); | 2165 sizeDiv.textContent = WebInspector.UIString("%s KB", Number.withThousand
sSeparator(Math.round(value / 1024))); |
2160 }, | 2166 }, |
2161 | 2167 |
2162 __proto__: WebInspector.VBox.prototype | 2168 __proto__: WebInspector.VBox.prototype |
2163 } | 2169 } |
OLD | NEW |