Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 17 matching lines...) Expand all Loading... | |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 WebInspector.HeapSnapshotProgressEvent = { | 31 WebInspector.HeapSnapshotProgressEvent = { |
| 32 Update: "ProgressUpdate" | 32 Update: "ProgressUpdate" |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 WebInspector.HeapSnapshotCommon = { | 35 WebInspector.HeapSnapshotCommon = { |
| 36 } | 36 } |
| 37 | 37 |
| 38 WebInspector.HeapSnapshotCommon.baseSystemDistance = 100000000; | |
|
yurys
2014/04/03 09:34:21
heapRootDistance
| |
| 39 | |
| 38 /** | 40 /** |
| 39 * @param {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode>} n odesWithSingleCaller | 41 * @param {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode>} n odesWithSingleCaller |
| 40 * @param {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode>} b ranchingCallers | 42 * @param {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode>} b ranchingCallers |
| 41 * @constructor | 43 * @constructor |
| 42 */ | 44 */ |
| 43 WebInspector.HeapSnapshotCommon.AllocationNodeCallers = function(nodesWithSingle Caller, branchingCallers) | 45 WebInspector.HeapSnapshotCommon.AllocationNodeCallers = function(nodesWithSingle Caller, branchingCallers) |
| 44 { | 46 { |
| 45 /** @type {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode >} */ | 47 /** @type {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode >} */ |
| 46 this.nodesWithSingleCaller = nodesWithSingleCaller; | 48 this.nodesWithSingleCaller = nodesWithSingleCaller; |
| 47 /** @type {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode >} */ | 49 /** @type {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode >} */ |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 273 WebInspector.HeapSnapshotCommon.NodeFilter.prototype = | 275 WebInspector.HeapSnapshotCommon.NodeFilter.prototype = |
| 274 { | 276 { |
| 275 /** | 277 /** |
| 276 * @param {!WebInspector.HeapSnapshotCommon.NodeFilter} o | 278 * @param {!WebInspector.HeapSnapshotCommon.NodeFilter} o |
| 277 * @return {boolean} | 279 * @return {boolean} |
| 278 */ | 280 */ |
| 279 equals: function(o) | 281 equals: function(o) |
| 280 { | 282 { |
| 281 return this.minNodeId === o.minNodeId && this.maxNodeId === o.maxNodeId && this.allocationNodeId === o.allocationNodeId; | 283 return this.minNodeId === o.minNodeId && this.maxNodeId === o.maxNodeId && this.allocationNodeId === o.allocationNodeId; |
| 282 } | 284 } |
| 283 } | 285 } |
| OLD | NEW |