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

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

Issue 222443003: DevTools: Treat system object distances with less priority (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/HeapSnapshot.js
diff --git a/Source/devtools/front_end/HeapSnapshot.js b/Source/devtools/front_end/HeapSnapshot.js
index f37c747715bd2a4bd94d73f27cc0604556348e33..72592145a60f8ab64bfabc8232ee42a8a541cddf 100644
--- a/Source/devtools/front_end/HeapSnapshot.js
+++ b/Source/devtools/front_end/HeapSnapshot.js
@@ -935,6 +935,8 @@ function HeapSnapshotHeader()
this.edge_count = 0;
}
+WebInspector.HeapSnapshot._baseSystemDistance = 100000000;
yurys 2014/04/03 09:15:12 You can place this constant into HeapSnapshotCommo
alph 2014/04/03 09:30:48 Done.
+
WebInspector.HeapSnapshot.prototype = {
_init: function()
{
@@ -1329,7 +1331,7 @@ WebInspector.HeapSnapshot.prototype = {
// bfs for the rest of objects
nodesToVisitLength = 0;
- this.forEachRoot(enqueueNode.bind(null, 0), false);
+ this.forEachRoot(enqueueNode.bind(null, WebInspector.HeapSnapshot._baseSystemDistance), false);
this._bfs(nodesToVisit, nodesToVisitLength, distances);
},
@@ -2043,7 +2045,12 @@ WebInspector.HeapSnapshot.prototype = {
*/
updateStaticData: function()
{
- return new WebInspector.HeapSnapshotCommon.StaticData(this.nodeCount, this._rootNodeIndex, this.totalSize, this._maxJsNodeId());
+ return new WebInspector.HeapSnapshotCommon.StaticData(
+ this.nodeCount,
+ this._rootNodeIndex,
+ this.totalSize,
+ this._maxJsNodeId(),
+ WebInspector.HeapSnapshot._baseSystemDistance);
}
};

Powered by Google App Engine
This is Rietveld 408576698