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

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: 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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 this.updateHasChildren(); 677 this.updateHasChildren();
678 } 678 }
679 679
680 WebInspector.HeapSnapshotObjectNode.prototype = { 680 WebInspector.HeapSnapshotObjectNode.prototype = {
681 /** 681 /**
682 * @return {!WebInspector.HeapSnapshotProviderProxy} 682 * @return {!WebInspector.HeapSnapshotProviderProxy}
683 */ 683 */
684 createProvider: function() 684 createProvider: function()
685 { 685 {
686 var tree = this._dataGrid; 686 var tree = this._dataGrid;
687 var showHiddenData = WebInspector.settings.showAdvancedHeapSnapshotPrope rties.get();
688 var snapshot = this._isFromBaseSnapshot ? tree.baseSnapshot : tree.snaps hot; 687 var snapshot = this._isFromBaseSnapshot ? tree.baseSnapshot : tree.snaps hot;
689 if (this.showRetainingEdges) 688 if (this.showRetainingEdges)
690 return snapshot.createRetainingEdgesProvider(this.snapshotNodeIndex, showHiddenData); 689 return snapshot.createRetainingEdgesProvider(this.snapshotNodeIndex) ;
691 else 690 else
692 return snapshot.createEdgesProvider(this.snapshotNodeIndex, showHidd enData); 691 return snapshot.createEdgesProvider(this.snapshotNodeIndex);
693 }, 692 },
694 693
695 _findAncestorWithSameSnapshotNodeId: function() 694 _findAncestorWithSameSnapshotNodeId: function()
696 { 695 {
697 var ancestor = this._parentGridNode; 696 var ancestor = this._parentGridNode;
698 while (ancestor) { 697 while (ancestor) {
699 if (ancestor.snapshotNodeId === this.snapshotNodeId) 698 if (ancestor.snapshotNodeId === this.snapshotNodeId)
700 return ancestor; 699 return ancestor;
701 ancestor = ancestor._parentGridNode; 700 ancestor = ancestor._parentGridNode;
702 } 701 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 this._isDeletedNode = !!baseSnapshot; 795 this._isDeletedNode = !!baseSnapshot;
797 this.updateHasChildren(); 796 this.updateHasChildren();
798 }; 797 };
799 798
800 WebInspector.HeapSnapshotInstanceNode.prototype = { 799 WebInspector.HeapSnapshotInstanceNode.prototype = {
801 /** 800 /**
802 * @return {!WebInspector.HeapSnapshotProviderProxy} 801 * @return {!WebInspector.HeapSnapshotProviderProxy}
803 */ 802 */
804 createProvider: function() 803 createProvider: function()
805 { 804 {
806 var showHiddenData = WebInspector.settings.showAdvancedHeapSnapshotPrope rties.get(); 805 return this._baseSnapshotOrSnapshot.createEdgesProvider(this.snapshotNod eIndex);
807 return this._baseSnapshotOrSnapshot.createEdgesProvider(
808 this.snapshotNodeIndex,
809 showHiddenData);
810 }, 806 },
811 807
812 _createChildNode: function(item) 808 _createChildNode: function(item)
813 { 809 {
814 return new WebInspector.HeapSnapshotObjectNode(this._dataGrid, this._isD eletedNode, item, null); 810 return new WebInspector.HeapSnapshotObjectNode(this._dataGrid, this._isD eletedNode, item, null);
815 }, 811 },
816 812
817 _childHashForEntity: function(edge) 813 _childHashForEntity: function(edge)
818 { 814 {
819 return edge.type + "#" + edge.name; 815 return edge.type + "#" + edge.name;
(...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 /** 1428 /**
1433 * @return {number} 1429 * @return {number}
1434 */ 1430 */
1435 allocationNodeId: function() 1431 allocationNodeId: function()
1436 { 1432 {
1437 return this.data.id; 1433 return this.data.id;
1438 }, 1434 },
1439 1435
1440 __proto__: WebInspector.DataGridNode.prototype 1436 __proto__: WebInspector.DataGridNode.prototype
1441 } 1437 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698