| 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 |
| 11 * copyright notice, this list of conditions and the following disclaimer | 11 * copyright notice, this list of conditions and the following disclaimer |
| 12 * in the documentation and/or other materials provided with the | 12 * in the documentation and/or other materials provided with the |
| 13 * distribution. | 13 * distribution. |
| 14 * * Neither the name of Google Inc. nor the names of its | 14 * * Neither the name of Google Inc. nor the names of its |
| 15 * contributors may be used to endorse or promote products derived from | 15 * contributors may be used to endorse or promote products derived from |
| 16 * this software without specific prior written permission. | 16 * this software without specific prior written permission. |
| 17 * | 17 * |
| 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | 19 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | 20 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 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 | |
| 31 WebInspector.HeapSnapshotProgressEvent = { | 30 WebInspector.HeapSnapshotProgressEvent = { |
| 32 Update: "ProgressUpdate", | 31 Update: 'ProgressUpdate', |
| 33 BrokenSnapshot: "BrokenSnapshot" | 32 BrokenSnapshot: 'BrokenSnapshot' |
| 34 }; | 33 }; |
| 35 | 34 |
| 36 WebInspector.HeapSnapshotCommon = { | 35 WebInspector.HeapSnapshotCommon = {}; |
| 37 }; | |
| 38 | 36 |
| 39 WebInspector.HeapSnapshotCommon.baseSystemDistance = 100000000; | 37 WebInspector.HeapSnapshotCommon.baseSystemDistance = 100000000; |
| 40 | 38 |
| 41 /** | 39 /** |
| 42 * @param {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode>} n
odesWithSingleCaller | 40 * @unrestricted |
| 43 * @param {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode>} b
ranchingCallers | |
| 44 * @constructor | |
| 45 */ | 41 */ |
| 46 WebInspector.HeapSnapshotCommon.AllocationNodeCallers = function(nodesWithSingle
Caller, branchingCallers) | 42 WebInspector.HeapSnapshotCommon.AllocationNodeCallers = class { |
| 47 { | 43 /** |
| 44 * @param {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode>}
nodesWithSingleCaller |
| 45 * @param {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode>}
branchingCallers |
| 46 */ |
| 47 constructor(nodesWithSingleCaller, branchingCallers) { |
| 48 /** @type {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode
>} */ | 48 /** @type {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode
>} */ |
| 49 this.nodesWithSingleCaller = nodesWithSingleCaller; | 49 this.nodesWithSingleCaller = nodesWithSingleCaller; |
| 50 /** @type {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode
>} */ | 50 /** @type {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode
>} */ |
| 51 this.branchingCallers = branchingCallers; | 51 this.branchingCallers = branchingCallers; |
| 52 } |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 /** | 55 /** |
| 55 * @param {number} nodeId | 56 * @unrestricted |
| 56 * @param {string} functionName | |
| 57 * @param {string} scriptName | |
| 58 * @param {number} scriptId | |
| 59 * @param {number} line | |
| 60 * @param {number} column | |
| 61 * @param {number} count | |
| 62 * @param {number} size | |
| 63 * @param {number} liveCount | |
| 64 * @param {number} liveSize | |
| 65 * @param {boolean} hasChildren | |
| 66 * @constructor | |
| 67 */ | 57 */ |
| 68 WebInspector.HeapSnapshotCommon.SerializedAllocationNode = function(nodeId, func
tionName, scriptName, scriptId, line, column, count, size, liveCount, liveSize,
hasChildren) | 58 WebInspector.HeapSnapshotCommon.SerializedAllocationNode = class { |
| 69 { | 59 /** |
| 60 * @param {number} nodeId |
| 61 * @param {string} functionName |
| 62 * @param {string} scriptName |
| 63 * @param {number} scriptId |
| 64 * @param {number} line |
| 65 * @param {number} column |
| 66 * @param {number} count |
| 67 * @param {number} size |
| 68 * @param {number} liveCount |
| 69 * @param {number} liveSize |
| 70 * @param {boolean} hasChildren |
| 71 */ |
| 72 constructor(nodeId, functionName, scriptName, scriptId, line, column, count, s
ize, liveCount, liveSize, hasChildren) { |
| 70 /** @type {number} */ | 73 /** @type {number} */ |
| 71 this.id = nodeId; | 74 this.id = nodeId; |
| 72 /** @type {string} */ | 75 /** @type {string} */ |
| 73 this.name = functionName; | 76 this.name = functionName; |
| 74 /** @type {string} */ | 77 /** @type {string} */ |
| 75 this.scriptName = scriptName; | 78 this.scriptName = scriptName; |
| 76 /** @type {number} */ | 79 /** @type {number} */ |
| 77 this.scriptId = scriptId; | 80 this.scriptId = scriptId; |
| 78 /** @type {number} */ | 81 /** @type {number} */ |
| 79 this.line = line; | 82 this.line = line; |
| 80 /** @type {number} */ | 83 /** @type {number} */ |
| 81 this.column = column; | 84 this.column = column; |
| 82 /** @type {number} */ | 85 /** @type {number} */ |
| 83 this.count = count; | 86 this.count = count; |
| 84 /** @type {number} */ | 87 /** @type {number} */ |
| 85 this.size = size; | 88 this.size = size; |
| 86 /** @type {number} */ | 89 /** @type {number} */ |
| 87 this.liveCount = liveCount; | 90 this.liveCount = liveCount; |
| 88 /** @type {number} */ | 91 /** @type {number} */ |
| 89 this.liveSize = liveSize; | 92 this.liveSize = liveSize; |
| 90 /** @type {boolean} */ | 93 /** @type {boolean} */ |
| 91 this.hasChildren = hasChildren; | 94 this.hasChildren = hasChildren; |
| 95 } |
| 92 }; | 96 }; |
| 93 | 97 |
| 94 /** | 98 /** |
| 95 * @param {string} functionName | 99 * @unrestricted |
| 96 * @param {string} scriptName | |
| 97 * @param {number} scriptId | |
| 98 * @param {number} line | |
| 99 * @param {number} column | |
| 100 * @constructor | |
| 101 */ | 100 */ |
| 102 WebInspector.HeapSnapshotCommon.AllocationStackFrame = function(functionName, sc
riptName, scriptId, line, column) | 101 WebInspector.HeapSnapshotCommon.AllocationStackFrame = class { |
| 103 { | 102 /** |
| 103 * @param {string} functionName |
| 104 * @param {string} scriptName |
| 105 * @param {number} scriptId |
| 106 * @param {number} line |
| 107 * @param {number} column |
| 108 */ |
| 109 constructor(functionName, scriptName, scriptId, line, column) { |
| 104 /** @type {string} */ | 110 /** @type {string} */ |
| 105 this.functionName = functionName; | 111 this.functionName = functionName; |
| 106 /** @type {string} */ | 112 /** @type {string} */ |
| 107 this.scriptName = scriptName; | 113 this.scriptName = scriptName; |
| 108 /** @type {number} */ | 114 /** @type {number} */ |
| 109 this.scriptId = scriptId; | 115 this.scriptId = scriptId; |
| 110 /** @type {number} */ | 116 /** @type {number} */ |
| 111 this.line = line; | 117 this.line = line; |
| 112 /** @type {number} */ | 118 /** @type {number} */ |
| 113 this.column = column; | 119 this.column = column; |
| 120 } |
| 114 }; | 121 }; |
| 115 | 122 |
| 116 /** | 123 /** |
| 117 * @constructor | 124 * @unrestricted |
| 118 * @param {number} id | |
| 119 * @param {string} name | |
| 120 * @param {number} distance | |
| 121 * @param {number} nodeIndex | |
| 122 * @param {number} retainedSize | |
| 123 * @param {number} selfSize | |
| 124 * @param {string} type | |
| 125 */ | 125 */ |
| 126 WebInspector.HeapSnapshotCommon.Node = function(id, name, distance, nodeIndex, r
etainedSize, selfSize, type) | 126 WebInspector.HeapSnapshotCommon.Node = class { |
| 127 { | 127 /** |
| 128 * @param {number} id |
| 129 * @param {string} name |
| 130 * @param {number} distance |
| 131 * @param {number} nodeIndex |
| 132 * @param {number} retainedSize |
| 133 * @param {number} selfSize |
| 134 * @param {string} type |
| 135 */ |
| 136 constructor(id, name, distance, nodeIndex, retainedSize, selfSize, type) { |
| 128 this.id = id; | 137 this.id = id; |
| 129 this.name = name; | 138 this.name = name; |
| 130 this.distance = distance; | 139 this.distance = distance; |
| 131 this.nodeIndex = nodeIndex; | 140 this.nodeIndex = nodeIndex; |
| 132 this.retainedSize = retainedSize; | 141 this.retainedSize = retainedSize; |
| 133 this.selfSize = selfSize; | 142 this.selfSize = selfSize; |
| 134 this.type = type; | 143 this.type = type; |
| 135 | 144 |
| 136 this.canBeQueried = false; | 145 this.canBeQueried = false; |
| 137 this.detachedDOMTreeNode = false; | 146 this.detachedDOMTreeNode = false; |
| 147 } |
| 138 }; | 148 }; |
| 139 | 149 |
| 140 /** | 150 /** |
| 141 * @constructor | 151 * @unrestricted |
| 142 * @param {string} name | |
| 143 * @param {!WebInspector.HeapSnapshotCommon.Node} node | |
| 144 * @param {string} type | |
| 145 * @param {number} edgeIndex | |
| 146 */ | 152 */ |
| 147 WebInspector.HeapSnapshotCommon.Edge = function(name, node, type, edgeIndex) | 153 WebInspector.HeapSnapshotCommon.Edge = class { |
| 148 { | 154 /** |
| 155 * @param {string} name |
| 156 * @param {!WebInspector.HeapSnapshotCommon.Node} node |
| 157 * @param {string} type |
| 158 * @param {number} edgeIndex |
| 159 */ |
| 160 constructor(name, node, type, edgeIndex) { |
| 149 this.name = name; | 161 this.name = name; |
| 150 this.node = node; | 162 this.node = node; |
| 151 this.type = type; | 163 this.type = type; |
| 152 this.edgeIndex = edgeIndex; | 164 this.edgeIndex = edgeIndex; |
| 165 } |
| 153 }; | 166 }; |
| 154 | 167 |
| 155 /** | 168 /** |
| 156 * @constructor | 169 * @unrestricted |
| 157 */ | 170 */ |
| 158 WebInspector.HeapSnapshotCommon.Aggregate = function() | 171 WebInspector.HeapSnapshotCommon.Aggregate = class { |
| 159 { | 172 constructor() { |
| 160 /** @type {number} */ | 173 /** @type {number} */ |
| 161 this.count; | 174 this.count; |
| 162 /** @type {number} */ | 175 /** @type {number} */ |
| 163 this.distance; | 176 this.distance; |
| 164 /** @type {number} */ | 177 /** @type {number} */ |
| 165 this.self; | 178 this.self; |
| 166 /** @type {number} */ | 179 /** @type {number} */ |
| 167 this.maxRet; | 180 this.maxRet; |
| 168 /** @type {number} */ | 181 /** @type {number} */ |
| 169 this.type; | 182 this.type; |
| 170 /** @type {string} */ | 183 /** @type {string} */ |
| 171 this.name; | 184 this.name; |
| 172 /** @type {!Array.<number>} */ | 185 /** @type {!Array.<number>} */ |
| 173 this.idxs; | 186 this.idxs; |
| 187 } |
| 174 }; | 188 }; |
| 175 | 189 |
| 176 /** | 190 /** |
| 177 * @constructor | 191 * @unrestricted |
| 178 */ | 192 */ |
| 179 WebInspector.HeapSnapshotCommon.AggregateForDiff = function() { | 193 WebInspector.HeapSnapshotCommon.AggregateForDiff = class { |
| 194 constructor() { |
| 180 /** @type {!Array.<number>} */ | 195 /** @type {!Array.<number>} */ |
| 181 this.indexes = []; | 196 this.indexes = []; |
| 182 /** @type {!Array.<string>} */ | 197 /** @type {!Array.<string>} */ |
| 183 this.ids = []; | 198 this.ids = []; |
| 184 /** @type {!Array.<number>} */ | 199 /** @type {!Array.<number>} */ |
| 185 this.selfSizes = []; | 200 this.selfSizes = []; |
| 201 } |
| 186 }; | 202 }; |
| 187 | 203 |
| 188 /** | 204 /** |
| 189 * @constructor | 205 * @unrestricted |
| 190 */ | 206 */ |
| 191 WebInspector.HeapSnapshotCommon.Diff = function() | 207 WebInspector.HeapSnapshotCommon.Diff = class { |
| 192 { | 208 constructor() { |
| 193 /** @type {number} */ | 209 /** @type {number} */ |
| 194 this.addedCount = 0; | 210 this.addedCount = 0; |
| 195 /** @type {number} */ | 211 /** @type {number} */ |
| 196 this.removedCount = 0; | 212 this.removedCount = 0; |
| 197 /** @type {number} */ | 213 /** @type {number} */ |
| 198 this.addedSize = 0; | 214 this.addedSize = 0; |
| 199 /** @type {number} */ | 215 /** @type {number} */ |
| 200 this.removedSize = 0; | 216 this.removedSize = 0; |
| 201 /** @type {!Array.<number>} */ | 217 /** @type {!Array.<number>} */ |
| 202 this.deletedIndexes = []; | 218 this.deletedIndexes = []; |
| 203 /** @type {!Array.<number>} */ | 219 /** @type {!Array.<number>} */ |
| 204 this.addedIndexes = []; | 220 this.addedIndexes = []; |
| 221 } |
| 205 }; | 222 }; |
| 206 | 223 |
| 207 /** | 224 /** |
| 208 * @constructor | 225 * @unrestricted |
| 209 */ | 226 */ |
| 210 WebInspector.HeapSnapshotCommon.DiffForClass = function() | 227 WebInspector.HeapSnapshotCommon.DiffForClass = class { |
| 211 { | 228 constructor() { |
| 212 /** @type {number} */ | 229 /** @type {number} */ |
| 213 this.addedCount; | 230 this.addedCount; |
| 214 /** @type {number} */ | 231 /** @type {number} */ |
| 215 this.removedCount; | 232 this.removedCount; |
| 216 /** @type {number} */ | 233 /** @type {number} */ |
| 217 this.addedSize; | 234 this.addedSize; |
| 218 /** @type {number} */ | 235 /** @type {number} */ |
| 219 this.removedSize; | 236 this.removedSize; |
| 220 /** @type {!Array.<number>} */ | 237 /** @type {!Array.<number>} */ |
| 221 this.deletedIndexes; | 238 this.deletedIndexes; |
| 222 /** @type {!Array.<number>} */ | 239 /** @type {!Array.<number>} */ |
| 223 this.addedIndexes; | 240 this.addedIndexes; |
| 224 | 241 |
| 225 /** @type {number} */ | 242 /** @type {number} */ |
| 226 this.countDelta; | 243 this.countDelta; |
| 227 /** @type {number} */ | 244 /** @type {number} */ |
| 228 this.sizeDelta; | 245 this.sizeDelta; |
| 246 } |
| 229 }; | 247 }; |
| 230 | 248 |
| 231 /** | 249 /** |
| 232 * @constructor | 250 * @unrestricted |
| 233 */ | 251 */ |
| 234 WebInspector.HeapSnapshotCommon.ComparatorConfig = function() | 252 WebInspector.HeapSnapshotCommon.ComparatorConfig = class { |
| 235 { | 253 constructor() { |
| 236 /** @type {string} */ | 254 /** @type {string} */ |
| 237 this.fieldName1; | 255 this.fieldName1; |
| 238 /** @type {boolean} */ | 256 /** @type {boolean} */ |
| 239 this.ascending1; | 257 this.ascending1; |
| 240 /** @type {string} */ | 258 /** @type {string} */ |
| 241 this.fieldName2; | 259 this.fieldName2; |
| 242 /** @type {boolean} */ | 260 /** @type {boolean} */ |
| 243 this.ascending2; | 261 this.ascending2; |
| 262 } |
| 244 }; | 263 }; |
| 245 | 264 |
| 246 /** | 265 /** |
| 247 * @constructor | 266 * @unrestricted |
| 248 */ | 267 */ |
| 249 WebInspector.HeapSnapshotCommon.WorkerCommand = function() | 268 WebInspector.HeapSnapshotCommon.WorkerCommand = class { |
| 250 { | 269 constructor() { |
| 251 /** @type {number} */ | 270 /** @type {number} */ |
| 252 this.callId; | 271 this.callId; |
| 253 /** @type {string} */ | 272 /** @type {string} */ |
| 254 this.disposition; | 273 this.disposition; |
| 255 /** @type {number} */ | 274 /** @type {number} */ |
| 256 this.objectId; | 275 this.objectId; |
| 257 /** @type {number} */ | 276 /** @type {number} */ |
| 258 this.newObjectId; | 277 this.newObjectId; |
| 259 /** @type {string} */ | 278 /** @type {string} */ |
| 260 this.methodName; | 279 this.methodName; |
| 261 /** @type {!Array.<*>} */ | 280 /** @type {!Array.<*>} */ |
| 262 this.methodArguments; | 281 this.methodArguments; |
| 263 /** @type {string} */ | 282 /** @type {string} */ |
| 264 this.source; | 283 this.source; |
| 284 } |
| 265 }; | 285 }; |
| 266 | 286 |
| 267 /** | 287 /** |
| 268 * @constructor | 288 * @unrestricted |
| 269 * @param {number} startPosition | |
| 270 * @param {number} endPosition | |
| 271 * @param {number} totalLength | |
| 272 * @param {!Array.<*>} items | |
| 273 */ | 289 */ |
| 274 WebInspector.HeapSnapshotCommon.ItemsRange = function(startPosition, endPosition
, totalLength, items) | 290 WebInspector.HeapSnapshotCommon.ItemsRange = class { |
| 275 { | 291 /** |
| 292 * @param {number} startPosition |
| 293 * @param {number} endPosition |
| 294 * @param {number} totalLength |
| 295 * @param {!Array.<*>} items |
| 296 */ |
| 297 constructor(startPosition, endPosition, totalLength, items) { |
| 276 /** @type {number} */ | 298 /** @type {number} */ |
| 277 this.startPosition = startPosition; | 299 this.startPosition = startPosition; |
| 278 /** @type {number} */ | 300 /** @type {number} */ |
| 279 this.endPosition = endPosition; | 301 this.endPosition = endPosition; |
| 280 /** @type {number} */ | 302 /** @type {number} */ |
| 281 this.totalLength = totalLength; | 303 this.totalLength = totalLength; |
| 282 /** @type {!Array.<*>} */ | 304 /** @type {!Array.<*>} */ |
| 283 this.items = items; | 305 this.items = items; |
| 306 } |
| 284 }; | 307 }; |
| 285 | 308 |
| 286 /** | 309 /** |
| 287 * @param {number} nodeCount | 310 * @unrestricted |
| 288 * @param {number} rootNodeIndex | |
| 289 * @param {number} totalSize | |
| 290 * @param {number} maxJSObjectId | |
| 291 * @constructor | |
| 292 */ | 311 */ |
| 293 WebInspector.HeapSnapshotCommon.StaticData = function(nodeCount, rootNodeIndex,
totalSize, maxJSObjectId) | 312 WebInspector.HeapSnapshotCommon.StaticData = class { |
| 294 { | 313 /** |
| 314 * @param {number} nodeCount |
| 315 * @param {number} rootNodeIndex |
| 316 * @param {number} totalSize |
| 317 * @param {number} maxJSObjectId |
| 318 */ |
| 319 constructor(nodeCount, rootNodeIndex, totalSize, maxJSObjectId) { |
| 295 /** @type {number} */ | 320 /** @type {number} */ |
| 296 this.nodeCount = nodeCount; | 321 this.nodeCount = nodeCount; |
| 297 /** @type {number} */ | 322 /** @type {number} */ |
| 298 this.rootNodeIndex = rootNodeIndex; | 323 this.rootNodeIndex = rootNodeIndex; |
| 299 /** @type {number} */ | 324 /** @type {number} */ |
| 300 this.totalSize = totalSize; | 325 this.totalSize = totalSize; |
| 301 /** @type {number} */ | 326 /** @type {number} */ |
| 302 this.maxJSObjectId = maxJSObjectId; | 327 this.maxJSObjectId = maxJSObjectId; |
| 328 } |
| 303 }; | 329 }; |
| 304 | 330 |
| 305 /** | 331 /** |
| 306 * @constructor | 332 * @unrestricted |
| 307 */ | 333 */ |
| 308 WebInspector.HeapSnapshotCommon.Statistics = function() | 334 WebInspector.HeapSnapshotCommon.Statistics = class { |
| 309 { | 335 constructor() { |
| 310 /** @type {number} */ | 336 /** @type {number} */ |
| 311 this.total; | 337 this.total; |
| 312 /** @type {number} */ | 338 /** @type {number} */ |
| 313 this.v8heap; | 339 this.v8heap; |
| 314 /** @type {number} */ | 340 /** @type {number} */ |
| 315 this.native; | 341 this.native; |
| 316 /** @type {number} */ | 342 /** @type {number} */ |
| 317 this.code; | 343 this.code; |
| 318 /** @type {number} */ | 344 /** @type {number} */ |
| 319 this.jsArrays; | 345 this.jsArrays; |
| 320 /** @type {number} */ | 346 /** @type {number} */ |
| 321 this.strings; | 347 this.strings; |
| 322 /** @type {number} */ | 348 /** @type {number} */ |
| 323 this.system; | 349 this.system; |
| 350 } |
| 324 }; | 351 }; |
| 325 | 352 |
| 326 | |
| 327 /** | 353 /** |
| 328 * @param {number=} minNodeId | 354 * @unrestricted |
| 329 * @param {number=} maxNodeId | |
| 330 * @constructor | |
| 331 */ | 355 */ |
| 332 WebInspector.HeapSnapshotCommon.NodeFilter = function(minNodeId, maxNodeId) | 356 WebInspector.HeapSnapshotCommon.NodeFilter = class { |
| 333 { | 357 /** |
| 358 * @param {number=} minNodeId |
| 359 * @param {number=} maxNodeId |
| 360 */ |
| 361 constructor(minNodeId, maxNodeId) { |
| 334 /** @type {number|undefined} */ | 362 /** @type {number|undefined} */ |
| 335 this.minNodeId = minNodeId; | 363 this.minNodeId = minNodeId; |
| 336 /** @type {number|undefined} */ | 364 /** @type {number|undefined} */ |
| 337 this.maxNodeId = maxNodeId; | 365 this.maxNodeId = maxNodeId; |
| 338 /** @type {number|undefined} */ | 366 /** @type {number|undefined} */ |
| 339 this.allocationNodeId; | 367 this.allocationNodeId; |
| 340 }; | 368 } |
| 341 | 369 |
| 342 WebInspector.HeapSnapshotCommon.NodeFilter.prototype = | 370 /** |
| 343 { | 371 * @param {!WebInspector.HeapSnapshotCommon.NodeFilter} o |
| 344 /** | 372 * @return {boolean} |
| 345 * @param {!WebInspector.HeapSnapshotCommon.NodeFilter} o | 373 */ |
| 346 * @return {boolean} | 374 equals(o) { |
| 347 */ | 375 return this.minNodeId === o.minNodeId && this.maxNodeId === o.maxNodeId && |
| 348 equals: function(o) | 376 this.allocationNodeId === o.allocationNodeId; |
| 349 { | 377 } |
| 350 return this.minNodeId === o.minNodeId && this.maxNodeId === o.maxNodeId
&& this.allocationNodeId === o.allocationNodeId; | |
| 351 } | |
| 352 }; | 378 }; |
| 353 | 379 |
| 354 /** | 380 /** |
| 355 * @param {string} query | 381 * @unrestricted |
| 356 * @param {boolean} caseSensitive | |
| 357 * @param {boolean} isRegex | |
| 358 * @param {boolean} shouldJump | |
| 359 * @param {boolean} jumpBackward | |
| 360 * @constructor | |
| 361 */ | 382 */ |
| 362 WebInspector.HeapSnapshotCommon.SearchConfig = function(query, caseSensitive, is
Regex, shouldJump, jumpBackward) | 383 WebInspector.HeapSnapshotCommon.SearchConfig = class { |
| 363 { | 384 /** |
| 385 * @param {string} query |
| 386 * @param {boolean} caseSensitive |
| 387 * @param {boolean} isRegex |
| 388 * @param {boolean} shouldJump |
| 389 * @param {boolean} jumpBackward |
| 390 */ |
| 391 constructor(query, caseSensitive, isRegex, shouldJump, jumpBackward) { |
| 364 this.query = query; | 392 this.query = query; |
| 365 this.caseSensitive = caseSensitive; | 393 this.caseSensitive = caseSensitive; |
| 366 this.isRegex = isRegex; | 394 this.isRegex = isRegex; |
| 367 this.shouldJump = shouldJump; | 395 this.shouldJump = shouldJump; |
| 368 this.jumpBackward = jumpBackward; | 396 this.jumpBackward = jumpBackward; |
| 397 } |
| 369 }; | 398 }; |
| 370 | 399 |
| 371 /** | 400 /** |
| 372 * @constructor | 401 * @unrestricted |
| 373 * @param {!Array.<number>} timestamps | |
| 374 * @param {!Array.<number>} lastAssignedIds | |
| 375 * @param {!Array.<number>} sizes | |
| 376 */ | 402 */ |
| 377 WebInspector.HeapSnapshotCommon.Samples = function(timestamps, lastAssignedIds,
sizes) | 403 WebInspector.HeapSnapshotCommon.Samples = class { |
| 378 { | 404 /** |
| 405 * @param {!Array.<number>} timestamps |
| 406 * @param {!Array.<number>} lastAssignedIds |
| 407 * @param {!Array.<number>} sizes |
| 408 */ |
| 409 constructor(timestamps, lastAssignedIds, sizes) { |
| 379 this.timestamps = timestamps; | 410 this.timestamps = timestamps; |
| 380 this.lastAssignedIds = lastAssignedIds; | 411 this.lastAssignedIds = lastAssignedIds; |
| 381 this.sizes = sizes; | 412 this.sizes = sizes; |
| 413 } |
| 382 }; | 414 }; |
| OLD | NEW |