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

Side by Side Diff: Source/devtools/front_end/HeapSnapshotCommon.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, 8 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 unified diff | Download patch | Annotate | Revision Log
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 this.totalLength = totalLength; 214 this.totalLength = totalLength;
215 /** @type {!Array.<*>} */ 215 /** @type {!Array.<*>} */
216 this.items = items; 216 this.items = items;
217 } 217 }
218 218
219 /** 219 /**
220 * @param {number} nodeCount 220 * @param {number} nodeCount
221 * @param {number} rootNodeIndex 221 * @param {number} rootNodeIndex
222 * @param {number} totalSize 222 * @param {number} totalSize
223 * @param {number} maxJSObjectId 223 * @param {number} maxJSObjectId
224 * @param {number} baseSystemDistance
224 * @constructor 225 * @constructor
225 */ 226 */
226 WebInspector.HeapSnapshotCommon.StaticData = function(nodeCount, rootNodeIndex, totalSize, maxJSObjectId) 227 WebInspector.HeapSnapshotCommon.StaticData = function(nodeCount, rootNodeIndex, totalSize, maxJSObjectId, baseSystemDistance)
227 { 228 {
228 /** @type {number} */ 229 /** @type {number} */
229 this.nodeCount = nodeCount; 230 this.nodeCount = nodeCount;
230 /** @type {number} */ 231 /** @type {number} */
231 this.rootNodeIndex = rootNodeIndex; 232 this.rootNodeIndex = rootNodeIndex;
232 /** @type {number} */ 233 /** @type {number} */
233 this.totalSize = totalSize; 234 this.totalSize = totalSize;
234 /** @type {number} */ 235 /** @type {number} */
235 this.maxJSObjectId = maxJSObjectId; 236 this.maxJSObjectId = maxJSObjectId;
237 /** @type {number} */
238 this.baseSystemDistance = baseSystemDistance;
236 } 239 }
237 240
238 /** 241 /**
239 * @constructor 242 * @constructor
240 */ 243 */
241 WebInspector.HeapSnapshotCommon.Statistics = function() 244 WebInspector.HeapSnapshotCommon.Statistics = function()
242 { 245 {
243 /** @type {number} */ 246 /** @type {number} */
244 this.total; 247 this.total;
245 /** @type {number} */ 248 /** @type {number} */
(...skipping 27 matching lines...) Expand all
273 WebInspector.HeapSnapshotCommon.NodeFilter.prototype = 276 WebInspector.HeapSnapshotCommon.NodeFilter.prototype =
274 { 277 {
275 /** 278 /**
276 * @param {!WebInspector.HeapSnapshotCommon.NodeFilter} o 279 * @param {!WebInspector.HeapSnapshotCommon.NodeFilter} o
277 * @return {boolean} 280 * @return {boolean}
278 */ 281 */
279 equals: function(o) 282 equals: function(o)
280 { 283 {
281 return this.minNodeId === o.minNodeId && this.maxNodeId === o.maxNodeId && this.allocationNodeId === o.allocationNodeId; 284 return this.minNodeId === o.minNodeId && this.maxNodeId === o.maxNodeId && this.allocationNodeId === o.allocationNodeId;
282 } 285 }
283 } 286 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698