OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 /** | 784 /** |
785 * @param {number} minNodeId | 785 * @param {number} minNodeId |
786 * @param {number} maxNodeId | 786 * @param {number} maxNodeId |
787 */ | 787 */ |
788 setSelectionRange: function(minNodeId, maxNodeId) | 788 setSelectionRange: function(minNodeId, maxNodeId) |
789 { | 789 { |
790 this._populateChildren(new WebInspector.HeapSnapshotCommon.NodeFilter(mi
nNodeId, maxNodeId)); | 790 this._populateChildren(new WebInspector.HeapSnapshotCommon.NodeFilter(mi
nNodeId, maxNodeId)); |
791 }, | 791 }, |
792 | 792 |
793 /** | 793 /** |
| 794 * @param {number} allocationNodeId |
| 795 */ |
| 796 setAllocationNodeId: function(allocationNodeId) |
| 797 { |
| 798 var filter = new WebInspector.HeapSnapshotCommon.NodeFilter(); |
| 799 filter.allocationNodeId = allocationNodeId; |
| 800 this._populateChildren(filter); |
| 801 }, |
| 802 |
| 803 /** |
794 * @param {!WebInspector.HeapSnapshotCommon.NodeFilter} nodeFilter | 804 * @param {!WebInspector.HeapSnapshotCommon.NodeFilter} nodeFilter |
795 * @param {!Object.<string, !WebInspector.HeapSnapshotCommon.Aggregate>} agg
regates | 805 * @param {!Object.<string, !WebInspector.HeapSnapshotCommon.Aggregate>} agg
regates |
796 */ | 806 */ |
797 _aggregatesReceived: function(nodeFilter, aggregates) | 807 _aggregatesReceived: function(nodeFilter, aggregates) |
798 { | 808 { |
799 this._filterInProgress = null; | 809 this._filterInProgress = null; |
800 if (this._nextRequestedFilter) { | 810 if (this._nextRequestedFilter) { |
801 this.snapshot.aggregatesWithFilter(this._nextRequestedFilter, this._
aggregatesReceived.bind(this, this._nextRequestedFilter)); | 811 this.snapshot.aggregatesWithFilter(this._nextRequestedFilter, this._
aggregatesReceived.bind(this, this._nextRequestedFilter)); |
802 this._filterInProgress = this._nextRequestedFilter; | 812 this._filterInProgress = this._nextRequestedFilter; |
803 this._nextRequestedFilter = null; | 813 this._nextRequestedFilter = null; |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1183 var functionInfo = this.data; | 1193 var functionInfo = this.data; |
1184 if (functionInfo.scriptName) { | 1194 if (functionInfo.scriptName) { |
1185 var urlElement = this._dataGrid._linkifier.linkifyLocation(functionI
nfo.scriptName, functionInfo.line - 1, functionInfo.column - 1, "profile-node-fi
le"); | 1195 var urlElement = this._dataGrid._linkifier.linkifyLocation(functionI
nfo.scriptName, functionInfo.line - 1, functionInfo.column - 1, "profile-node-fi
le"); |
1186 urlElement.style.maxWidth = "75%"; | 1196 urlElement.style.maxWidth = "75%"; |
1187 cell.insertBefore(urlElement, cell.firstChild); | 1197 cell.insertBefore(urlElement, cell.firstChild); |
1188 } | 1198 } |
1189 | 1199 |
1190 return cell; | 1200 return cell; |
1191 }, | 1201 }, |
1192 | 1202 |
| 1203 /** |
| 1204 * @return {number} |
| 1205 */ |
| 1206 allocationNodeId: function() |
| 1207 { |
| 1208 return this.data.id; |
| 1209 }, |
| 1210 |
1193 __proto__: WebInspector.DataGridNode.prototype | 1211 __proto__: WebInspector.DataGridNode.prototype |
1194 } | 1212 } |
1195 | 1213 |
OLD | NEW |