Chromium Code Reviews| 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); |
| } |
| }; |