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

Unified Diff: Source/devtools/front_end/HeapSnapshotDataGrids.js

Issue 203403002: Show live objects with given allocation call stack (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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/HeapSnapshotDataGrids.js
diff --git a/Source/devtools/front_end/HeapSnapshotDataGrids.js b/Source/devtools/front_end/HeapSnapshotDataGrids.js
index 877617d237420d0b3a03a3623aff8f91c5f79d66..56e7054d027acc984c97e4f37196e96fd730bea9 100644
--- a/Source/devtools/front_end/HeapSnapshotDataGrids.js
+++ b/Source/devtools/front_end/HeapSnapshotDataGrids.js
@@ -791,6 +791,16 @@ WebInspector.HeapSnapshotConstructorsDataGrid.prototype = {
},
/**
+ * @param {number} allocationNodeId
+ */
+ setAllocationNodeId: function(allocationNodeId)
+ {
+ var filter = new WebInspector.HeapSnapshotCommon.NodeFilter();
+ filter.allocationNodeId = allocationNodeId;
+ this._populateChildren(filter);
+ },
+
+ /**
* @param {!WebInspector.HeapSnapshotCommon.NodeFilter} nodeFilter
* @param {!Object.<string, !WebInspector.HeapSnapshotCommon.Aggregate>} aggregates
*/
@@ -1190,6 +1200,14 @@ WebInspector.AllocationGridNode.prototype = {
return cell;
},
+ /**
+ * @return {number}
+ */
+ allocationNodeId: function()
+ {
+ return this.data.id;
+ },
+
__proto__: WebInspector.DataGridNode.prototype
}

Powered by Google App Engine
This is Rietveld 408576698