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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/profiler/HeapSnapshotCommon.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
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 16 matching lines...) Expand all
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 30
31 WebInspector.HeapSnapshotProgressEvent = { 31 WebInspector.HeapSnapshotProgressEvent = {
32 Update: "ProgressUpdate", 32 Update: "ProgressUpdate",
33 BrokenSnapshot: "BrokenSnapshot" 33 BrokenSnapshot: "BrokenSnapshot"
34 }; 34 };
35 35
36 WebInspector.HeapSnapshotCommon = { 36 WebInspector.HeapSnapshotCommon = {
37 } 37 };
38 38
39 WebInspector.HeapSnapshotCommon.baseSystemDistance = 100000000; 39 WebInspector.HeapSnapshotCommon.baseSystemDistance = 100000000;
40 40
41 /** 41 /**
42 * @param {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode>} n odesWithSingleCaller 42 * @param {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode>} n odesWithSingleCaller
43 * @param {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode>} b ranchingCallers 43 * @param {!Array.<!WebInspector.HeapSnapshotCommon.SerializedAllocationNode>} b ranchingCallers
44 * @constructor 44 * @constructor
45 */ 45 */
46 WebInspector.HeapSnapshotCommon.AllocationNodeCallers = function(nodesWithSingle Caller, branchingCallers) 46 WebInspector.HeapSnapshotCommon.AllocationNodeCallers = function(nodesWithSingle Caller, branchingCallers)
47 { 47 {
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 * @param {number} nodeId 55 * @param {number} nodeId
56 * @param {string} functionName 56 * @param {string} functionName
57 * @param {string} scriptName 57 * @param {string} scriptName
58 * @param {number} scriptId 58 * @param {number} scriptId
59 * @param {number} line 59 * @param {number} line
60 * @param {number} column 60 * @param {number} column
61 * @param {number} count 61 * @param {number} count
62 * @param {number} size 62 * @param {number} size
(...skipping 19 matching lines...) Expand all
82 /** @type {number} */ 82 /** @type {number} */
83 this.count = count; 83 this.count = count;
84 /** @type {number} */ 84 /** @type {number} */
85 this.size = size; 85 this.size = size;
86 /** @type {number} */ 86 /** @type {number} */
87 this.liveCount = liveCount; 87 this.liveCount = liveCount;
88 /** @type {number} */ 88 /** @type {number} */
89 this.liveSize = liveSize; 89 this.liveSize = liveSize;
90 /** @type {boolean} */ 90 /** @type {boolean} */
91 this.hasChildren = hasChildren; 91 this.hasChildren = hasChildren;
92 } 92 };
93 93
94 /** 94 /**
95 * @param {string} functionName 95 * @param {string} functionName
96 * @param {string} scriptName 96 * @param {string} scriptName
97 * @param {number} scriptId 97 * @param {number} scriptId
98 * @param {number} line 98 * @param {number} line
99 * @param {number} column 99 * @param {number} column
100 * @constructor 100 * @constructor
101 */ 101 */
102 WebInspector.HeapSnapshotCommon.AllocationStackFrame = function(functionName, sc riptName, scriptId, line, column) 102 WebInspector.HeapSnapshotCommon.AllocationStackFrame = function(functionName, sc riptName, scriptId, line, column)
103 { 103 {
104 /** @type {string} */ 104 /** @type {string} */
105 this.functionName = functionName; 105 this.functionName = functionName;
106 /** @type {string} */ 106 /** @type {string} */
107 this.scriptName = scriptName; 107 this.scriptName = scriptName;
108 /** @type {number} */ 108 /** @type {number} */
109 this.scriptId = scriptId; 109 this.scriptId = scriptId;
110 /** @type {number} */ 110 /** @type {number} */
111 this.line = line; 111 this.line = line;
112 /** @type {number} */ 112 /** @type {number} */
113 this.column = column; 113 this.column = column;
114 } 114 };
115 115
116 /** 116 /**
117 * @constructor 117 * @constructor
118 * @param {number} id 118 * @param {number} id
119 * @param {string} name 119 * @param {string} name
120 * @param {number} distance 120 * @param {number} distance
121 * @param {number} nodeIndex 121 * @param {number} nodeIndex
122 * @param {number} retainedSize 122 * @param {number} retainedSize
123 * @param {number} selfSize 123 * @param {number} selfSize
124 * @param {string} type 124 * @param {string} type
125 */ 125 */
126 WebInspector.HeapSnapshotCommon.Node = function(id, name, distance, nodeIndex, r etainedSize, selfSize, type) 126 WebInspector.HeapSnapshotCommon.Node = function(id, name, distance, nodeIndex, r etainedSize, selfSize, type)
127 { 127 {
128 this.id = id; 128 this.id = id;
129 this.name = name; 129 this.name = name;
130 this.distance = distance; 130 this.distance = distance;
131 this.nodeIndex = nodeIndex; 131 this.nodeIndex = nodeIndex;
132 this.retainedSize = retainedSize; 132 this.retainedSize = retainedSize;
133 this.selfSize = selfSize; 133 this.selfSize = selfSize;
134 this.type = type; 134 this.type = type;
135 135
136 this.canBeQueried = false; 136 this.canBeQueried = false;
137 this.detachedDOMTreeNode = false; 137 this.detachedDOMTreeNode = false;
138 } 138 };
139 139
140 /** 140 /**
141 * @constructor 141 * @constructor
142 * @param {string} name 142 * @param {string} name
143 * @param {!WebInspector.HeapSnapshotCommon.Node} node 143 * @param {!WebInspector.HeapSnapshotCommon.Node} node
144 * @param {string} type 144 * @param {string} type
145 * @param {number} edgeIndex 145 * @param {number} edgeIndex
146 */ 146 */
147 WebInspector.HeapSnapshotCommon.Edge = function(name, node, type, edgeIndex) 147 WebInspector.HeapSnapshotCommon.Edge = function(name, node, type, edgeIndex)
148 { 148 {
(...skipping 15 matching lines...) Expand all
164 /** @type {number} */ 164 /** @type {number} */
165 this.self; 165 this.self;
166 /** @type {number} */ 166 /** @type {number} */
167 this.maxRet; 167 this.maxRet;
168 /** @type {number} */ 168 /** @type {number} */
169 this.type; 169 this.type;
170 /** @type {string} */ 170 /** @type {string} */
171 this.name; 171 this.name;
172 /** @type {!Array.<number>} */ 172 /** @type {!Array.<number>} */
173 this.idxs; 173 this.idxs;
174 } 174 };
175 175
176 /** 176 /**
177 * @constructor 177 * @constructor
178 */ 178 */
179 WebInspector.HeapSnapshotCommon.AggregateForDiff = function() { 179 WebInspector.HeapSnapshotCommon.AggregateForDiff = function() {
180 /** @type {!Array.<number>} */ 180 /** @type {!Array.<number>} */
181 this.indexes = []; 181 this.indexes = [];
182 /** @type {!Array.<string>} */ 182 /** @type {!Array.<string>} */
183 this.ids = []; 183 this.ids = [];
184 /** @type {!Array.<number>} */ 184 /** @type {!Array.<number>} */
185 this.selfSizes = []; 185 this.selfSizes = [];
186 } 186 };
187 187
188 /** 188 /**
189 * @constructor 189 * @constructor
190 */ 190 */
191 WebInspector.HeapSnapshotCommon.Diff = function() 191 WebInspector.HeapSnapshotCommon.Diff = function()
192 { 192 {
193 /** @type {number} */ 193 /** @type {number} */
194 this.addedCount = 0; 194 this.addedCount = 0;
195 /** @type {number} */ 195 /** @type {number} */
196 this.removedCount = 0; 196 this.removedCount = 0;
197 /** @type {number} */ 197 /** @type {number} */
198 this.addedSize = 0; 198 this.addedSize = 0;
199 /** @type {number} */ 199 /** @type {number} */
200 this.removedSize = 0; 200 this.removedSize = 0;
201 /** @type {!Array.<number>} */ 201 /** @type {!Array.<number>} */
202 this.deletedIndexes = []; 202 this.deletedIndexes = [];
203 /** @type {!Array.<number>} */ 203 /** @type {!Array.<number>} */
204 this.addedIndexes = []; 204 this.addedIndexes = [];
205 } 205 };
206 206
207 /** 207 /**
208 * @constructor 208 * @constructor
209 */ 209 */
210 WebInspector.HeapSnapshotCommon.DiffForClass = function() 210 WebInspector.HeapSnapshotCommon.DiffForClass = function()
211 { 211 {
212 /** @type {number} */ 212 /** @type {number} */
213 this.addedCount; 213 this.addedCount;
214 /** @type {number} */ 214 /** @type {number} */
215 this.removedCount; 215 this.removedCount;
216 /** @type {number} */ 216 /** @type {number} */
217 this.addedSize; 217 this.addedSize;
218 /** @type {number} */ 218 /** @type {number} */
219 this.removedSize; 219 this.removedSize;
220 /** @type {!Array.<number>} */ 220 /** @type {!Array.<number>} */
221 this.deletedIndexes; 221 this.deletedIndexes;
222 /** @type {!Array.<number>} */ 222 /** @type {!Array.<number>} */
223 this.addedIndexes; 223 this.addedIndexes;
224 224
225 /** @type {number} */ 225 /** @type {number} */
226 this.countDelta; 226 this.countDelta;
227 /** @type {number} */ 227 /** @type {number} */
228 this.sizeDelta; 228 this.sizeDelta;
229 } 229 };
230 230
231 /** 231 /**
232 * @constructor 232 * @constructor
233 */ 233 */
234 WebInspector.HeapSnapshotCommon.ComparatorConfig = function() 234 WebInspector.HeapSnapshotCommon.ComparatorConfig = function()
235 { 235 {
236 /** @type {string} */ 236 /** @type {string} */
237 this.fieldName1; 237 this.fieldName1;
238 /** @type {boolean} */ 238 /** @type {boolean} */
239 this.ascending1; 239 this.ascending1;
240 /** @type {string} */ 240 /** @type {string} */
241 this.fieldName2; 241 this.fieldName2;
242 /** @type {boolean} */ 242 /** @type {boolean} */
243 this.ascending2; 243 this.ascending2;
244 } 244 };
245 245
246 /** 246 /**
247 * @constructor 247 * @constructor
248 */ 248 */
249 WebInspector.HeapSnapshotCommon.WorkerCommand = function() 249 WebInspector.HeapSnapshotCommon.WorkerCommand = function()
250 { 250 {
251 /** @type {number} */ 251 /** @type {number} */
252 this.callId; 252 this.callId;
253 /** @type {string} */ 253 /** @type {string} */
254 this.disposition; 254 this.disposition;
255 /** @type {number} */ 255 /** @type {number} */
256 this.objectId; 256 this.objectId;
257 /** @type {number} */ 257 /** @type {number} */
258 this.newObjectId; 258 this.newObjectId;
259 /** @type {string} */ 259 /** @type {string} */
260 this.methodName; 260 this.methodName;
261 /** @type {!Array.<*>} */ 261 /** @type {!Array.<*>} */
262 this.methodArguments; 262 this.methodArguments;
263 /** @type {string} */ 263 /** @type {string} */
264 this.source; 264 this.source;
265 } 265 };
266 266
267 /** 267 /**
268 * @constructor 268 * @constructor
269 * @param {number} startPosition 269 * @param {number} startPosition
270 * @param {number} endPosition 270 * @param {number} endPosition
271 * @param {number} totalLength 271 * @param {number} totalLength
272 * @param {!Array.<*>} items 272 * @param {!Array.<*>} items
273 */ 273 */
274 WebInspector.HeapSnapshotCommon.ItemsRange = function(startPosition, endPosition , totalLength, items) 274 WebInspector.HeapSnapshotCommon.ItemsRange = function(startPosition, endPosition , totalLength, items)
275 { 275 {
276 /** @type {number} */ 276 /** @type {number} */
277 this.startPosition = startPosition; 277 this.startPosition = startPosition;
278 /** @type {number} */ 278 /** @type {number} */
279 this.endPosition = endPosition; 279 this.endPosition = endPosition;
280 /** @type {number} */ 280 /** @type {number} */
281 this.totalLength = totalLength; 281 this.totalLength = totalLength;
282 /** @type {!Array.<*>} */ 282 /** @type {!Array.<*>} */
283 this.items = items; 283 this.items = items;
284 } 284 };
285 285
286 /** 286 /**
287 * @param {number} nodeCount 287 * @param {number} nodeCount
288 * @param {number} rootNodeIndex 288 * @param {number} rootNodeIndex
289 * @param {number} totalSize 289 * @param {number} totalSize
290 * @param {number} maxJSObjectId 290 * @param {number} maxJSObjectId
291 * @constructor 291 * @constructor
292 */ 292 */
293 WebInspector.HeapSnapshotCommon.StaticData = function(nodeCount, rootNodeIndex, totalSize, maxJSObjectId) 293 WebInspector.HeapSnapshotCommon.StaticData = function(nodeCount, rootNodeIndex, totalSize, maxJSObjectId)
294 { 294 {
295 /** @type {number} */ 295 /** @type {number} */
296 this.nodeCount = nodeCount; 296 this.nodeCount = nodeCount;
297 /** @type {number} */ 297 /** @type {number} */
298 this.rootNodeIndex = rootNodeIndex; 298 this.rootNodeIndex = rootNodeIndex;
299 /** @type {number} */ 299 /** @type {number} */
300 this.totalSize = totalSize; 300 this.totalSize = totalSize;
301 /** @type {number} */ 301 /** @type {number} */
302 this.maxJSObjectId = maxJSObjectId; 302 this.maxJSObjectId = maxJSObjectId;
303 } 303 };
304 304
305 /** 305 /**
306 * @constructor 306 * @constructor
307 */ 307 */
308 WebInspector.HeapSnapshotCommon.Statistics = function() 308 WebInspector.HeapSnapshotCommon.Statistics = function()
309 { 309 {
310 /** @type {number} */ 310 /** @type {number} */
311 this.total; 311 this.total;
312 /** @type {number} */ 312 /** @type {number} */
313 this.v8heap; 313 this.v8heap;
314 /** @type {number} */ 314 /** @type {number} */
315 this.native; 315 this.native;
316 /** @type {number} */ 316 /** @type {number} */
317 this.code; 317 this.code;
318 /** @type {number} */ 318 /** @type {number} */
319 this.jsArrays; 319 this.jsArrays;
320 /** @type {number} */ 320 /** @type {number} */
321 this.strings; 321 this.strings;
322 /** @type {number} */ 322 /** @type {number} */
323 this.system; 323 this.system;
324 } 324 };
325 325
326 326
327 /** 327 /**
328 * @param {number=} minNodeId 328 * @param {number=} minNodeId
329 * @param {number=} maxNodeId 329 * @param {number=} maxNodeId
330 * @constructor 330 * @constructor
331 */ 331 */
332 WebInspector.HeapSnapshotCommon.NodeFilter = function(minNodeId, maxNodeId) 332 WebInspector.HeapSnapshotCommon.NodeFilter = function(minNodeId, maxNodeId)
333 { 333 {
334 /** @type {number|undefined} */ 334 /** @type {number|undefined} */
335 this.minNodeId = minNodeId; 335 this.minNodeId = minNodeId;
336 /** @type {number|undefined} */ 336 /** @type {number|undefined} */
337 this.maxNodeId = maxNodeId; 337 this.maxNodeId = maxNodeId;
338 /** @type {number|undefined} */ 338 /** @type {number|undefined} */
339 this.allocationNodeId; 339 this.allocationNodeId;
340 } 340 };
341 341
342 WebInspector.HeapSnapshotCommon.NodeFilter.prototype = 342 WebInspector.HeapSnapshotCommon.NodeFilter.prototype =
343 { 343 {
344 /** 344 /**
345 * @param {!WebInspector.HeapSnapshotCommon.NodeFilter} o 345 * @param {!WebInspector.HeapSnapshotCommon.NodeFilter} o
346 * @return {boolean} 346 * @return {boolean}
347 */ 347 */
348 equals: function(o) 348 equals: function(o)
349 { 349 {
350 return this.minNodeId === o.minNodeId && this.maxNodeId === o.maxNodeId && this.allocationNodeId === o.allocationNodeId; 350 return this.minNodeId === o.minNodeId && this.maxNodeId === o.maxNodeId && this.allocationNodeId === o.allocationNodeId;
351 } 351 }
352 } 352 };
353 353
354 /** 354 /**
355 * @param {string} query 355 * @param {string} query
356 * @param {boolean} caseSensitive 356 * @param {boolean} caseSensitive
357 * @param {boolean} isRegex 357 * @param {boolean} isRegex
358 * @param {boolean} shouldJump 358 * @param {boolean} shouldJump
359 * @param {boolean} jumpBackward 359 * @param {boolean} jumpBackward
360 * @constructor 360 * @constructor
361 */ 361 */
362 WebInspector.HeapSnapshotCommon.SearchConfig = function(query, caseSensitive, is Regex, shouldJump, jumpBackward) 362 WebInspector.HeapSnapshotCommon.SearchConfig = function(query, caseSensitive, is Regex, shouldJump, jumpBackward)
363 { 363 {
364 this.query = query; 364 this.query = query;
365 this.caseSensitive = caseSensitive; 365 this.caseSensitive = caseSensitive;
366 this.isRegex = isRegex; 366 this.isRegex = isRegex;
367 this.shouldJump = shouldJump; 367 this.shouldJump = shouldJump;
368 this.jumpBackward = jumpBackward; 368 this.jumpBackward = jumpBackward;
369 } 369 };
370 370
371 /** 371 /**
372 * @constructor 372 * @constructor
373 * @param {!Array.<number>} timestamps 373 * @param {!Array.<number>} timestamps
374 * @param {!Array.<number>} lastAssignedIds 374 * @param {!Array.<number>} lastAssignedIds
375 * @param {!Array.<number>} sizes 375 * @param {!Array.<number>} sizes
376 */ 376 */
377 WebInspector.HeapSnapshotCommon.Samples = function(timestamps, lastAssignedIds, sizes) 377 WebInspector.HeapSnapshotCommon.Samples = function(timestamps, lastAssignedIds, sizes)
378 { 378 {
379 this.timestamps = timestamps; 379 this.timestamps = timestamps;
380 this.lastAssignedIds = lastAssignedIds; 380 this.lastAssignedIds = lastAssignedIds;
381 this.sizes = sizes; 381 this.sizes = sizes;
382 } 382 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698