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

Side by Side Diff: Source/devtools/front_end/HeapSnapshotView.js

Issue 212773005: DevTools: Show all objects in class view in advanced heap snapshot mode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
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 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 if (selectedIndex === this._currentPerspectiveIndex) 866 if (selectedIndex === this._currentPerspectiveIndex)
867 return; 867 return;
868 868
869 if (this._dataGrid) 869 if (this._dataGrid)
870 this._dataGrid.removeEventListener(WebInspector.HeapSnapshotSortable DataGrid.Events.ResetFilter, this._onResetClassNameFilter, this); 870 this._dataGrid.removeEventListener(WebInspector.HeapSnapshotSortable DataGrid.Events.ResetFilter, this._onResetClassNameFilter, this);
871 871
872 this._currentPerspectiveIndex = selectedIndex; 872 this._currentPerspectiveIndex = selectedIndex;
873 873
874 this._currentPerspective.deactivate(this); 874 this._currentPerspective.deactivate(this);
875 var perspective = this._perspectives[selectedIndex]; 875 var perspective = this._perspectives[selectedIndex];
876 perspective.activate(this);
yurys 2014/03/27 07:35:41 Why did this move?
alph 2014/03/27 09:39:32 activate calls show on grids, which in turn send C
877 this._currentPerspective = perspective; 876 this._currentPerspective = perspective;
878 this._dataGrid = perspective.masterGrid(this); 877 this._dataGrid = perspective.masterGrid(this);
878 perspective.activate(this);
879 879
880 this.refreshVisibleData(); 880 this.refreshVisibleData();
881 if (this._dataGrid) { 881 if (this._dataGrid) {
882 this._dataGrid.addEventListener(WebInspector.HeapSnapshotSortableDat aGrid.Events.ResetFilter, this._onResetClassNameFilter, this); 882 this._dataGrid.addEventListener(WebInspector.HeapSnapshotSortableDat aGrid.Events.ResetFilter, this._onResetClassNameFilter, this);
883 this._dataGrid.updateWidths(); 883 this._dataGrid.updateWidths();
884 } 884 }
885 885
886 this._updateDataSourceAndView(); 886 this._updateDataSourceAndView();
887 887
888 if (!this.currentQuery || !this._searchFinishedCallback || !this._search Results) 888 if (!this.currentQuery || !this._searchFinishedCallback || !this._search Results)
(...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
2163 if (color) 2163 if (color)
2164 swatchDiv.style.backgroundColor = color; 2164 swatchDiv.style.backgroundColor = color;
2165 else 2165 else
2166 swatchDiv.classList.add("heap-snapshot-stats-empty-swatch"); 2166 swatchDiv.classList.add("heap-snapshot-stats-empty-swatch");
2167 nameDiv.textContent = name; 2167 nameDiv.textContent = name;
2168 sizeDiv.textContent = WebInspector.UIString("%s KB", Number.withThousand sSeparator(Math.round(value / 1024))); 2168 sizeDiv.textContent = WebInspector.UIString("%s KB", Number.withThousand sSeparator(Math.round(value / 1024)));
2169 }, 2169 },
2170 2170
2171 __proto__: WebInspector.VBox.prototype 2171 __proto__: WebInspector.VBox.prototype
2172 } 2172 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698