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

Side by Side Diff: Source/devtools/front_end/HeapSnapshotGridNodes.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: Rebaseline 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 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 { 701 {
702 return {snapshot: this._snapshot, snapshotNodeIndex: this.snapshotNodeIn dex}; 702 return {snapshot: this._snapshot, snapshotNodeIndex: this.snapshotNodeIn dex};
703 }, 703 },
704 704
705 /** 705 /**
706 * @return {!WebInspector.HeapSnapshotProviderProxy} 706 * @return {!WebInspector.HeapSnapshotProviderProxy}
707 */ 707 */
708 createProvider: function() 708 createProvider: function()
709 { 709 {
710 var tree = this._dataGrid; 710 var tree = this._dataGrid;
711 var showHiddenData = WebInspector.settings.showAdvancedHeapSnapshotPrope rties.get();
712 if (this.showRetainingEdges) 711 if (this.showRetainingEdges)
713 return this._snapshot.createRetainingEdgesProvider(this.snapshotNode Index, showHiddenData); 712 return this._snapshot.createRetainingEdgesProvider(this.snapshotNode Index);
714 else 713 else
715 return this._snapshot.createEdgesProvider(this.snapshotNodeIndex, sh owHiddenData); 714 return this._snapshot.createEdgesProvider(this.snapshotNodeIndex);
716 }, 715 },
717 716
718 _findAncestorWithSameSnapshotNodeId: function() 717 _findAncestorWithSameSnapshotNodeId: function()
719 { 718 {
720 var ancestor = this._parentGridNode; 719 var ancestor = this._parentGridNode;
721 while (ancestor) { 720 while (ancestor) {
722 if (ancestor.snapshotNodeId === this.snapshotNodeId) 721 if (ancestor.snapshotNodeId === this.snapshotNodeId)
723 return ancestor; 722 return ancestor;
724 ancestor = ancestor._parentGridNode; 723 ancestor = ancestor._parentGridNode;
725 } 724 }
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 retainersDataSource: function() 833 retainersDataSource: function()
835 { 834 {
836 return {snapshot: this._baseSnapshotOrSnapshot, snapshotNodeIndex: this. snapshotNodeIndex}; 835 return {snapshot: this._baseSnapshotOrSnapshot, snapshotNodeIndex: this. snapshotNodeIndex};
837 }, 836 },
838 837
839 /** 838 /**
840 * @return {!WebInspector.HeapSnapshotProviderProxy} 839 * @return {!WebInspector.HeapSnapshotProviderProxy}
841 */ 840 */
842 createProvider: function() 841 createProvider: function()
843 { 842 {
844 var showHiddenData = WebInspector.settings.showAdvancedHeapSnapshotPrope rties.get(); 843 return this._baseSnapshotOrSnapshot.createEdgesProvider(this.snapshotNod eIndex);
845 return this._baseSnapshotOrSnapshot.createEdgesProvider(
846 this.snapshotNodeIndex,
847 showHiddenData);
848 }, 844 },
849 845
850 _createChildNode: function(item) 846 _createChildNode: function(item)
851 { 847 {
852 return new WebInspector.HeapSnapshotObjectNode(this._dataGrid, this._bas eSnapshotOrSnapshot, item, null); 848 return new WebInspector.HeapSnapshotObjectNode(this._dataGrid, this._bas eSnapshotOrSnapshot, item, null);
853 }, 849 },
854 850
855 _childHashForEntity: function(edge) 851 _childHashForEntity: function(edge)
856 { 852 {
857 return edge.type + "#" + edge.name; 853 return edge.type + "#" + edge.name;
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
1424 /** 1420 /**
1425 * @return {number} 1421 * @return {number}
1426 */ 1422 */
1427 allocationNodeId: function() 1423 allocationNodeId: function()
1428 { 1424 {
1429 return this.data.id; 1425 return this.data.id;
1430 }, 1426 },
1431 1427
1432 __proto__: WebInspector.DataGridNode.prototype 1428 __proto__: WebInspector.DataGridNode.prototype
1433 } 1429 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/HeapSnapshot.js ('k') | Source/devtools/front_end/HeapSnapshotLoader.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698