| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 copyrightdd | 8 * * Redistributions of source code must retain the above copyrightdd |
| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 disposeWorker: function() | 209 disposeWorker: function() |
| 210 { | 210 { |
| 211 this._worker.dispose(); | 211 this._worker.dispose(); |
| 212 }, | 212 }, |
| 213 | 213 |
| 214 /** | 214 /** |
| 215 * @param {?function(...[?])} callback | 215 * @param {?function(...[?])} callback |
| 216 * @param {string} methodName | 216 * @param {string} methodName |
| 217 * @param {function (new:T, ...[?])} proxyConstructor | 217 * @param {function (new:T, ...[?])} proxyConstructor |
| 218 * @param {...*} var_args | 218 * @param {...*} var_args |
| 219 * @return {?WebInspector.HeapSnapshotProviderProxy} | 219 * @return {!T} |
| 220 * @template T | 220 * @template T |
| 221 */ | 221 */ |
| 222 callFactoryMethod: function(callback, methodName, proxyConstructor, var_args
) | 222 callFactoryMethod: function(callback, methodName, proxyConstructor, var_args
) |
| 223 { | 223 { |
| 224 return this._callWorker("callFactoryMethod", Array.prototype.slice.call(
arguments, 0)); | 224 return this._callWorker("callFactoryMethod", Array.prototype.slice.call(
arguments, 0)); |
| 225 }, | 225 }, |
| 226 | 226 |
| 227 /** | 227 /** |
| 228 * @param {function(T)|undefined} callback | 228 * @param {function(T)|undefined} callback |
| 229 * @param {string} methodName | 229 * @param {string} methodName |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 */ | 267 */ |
| 268 close: function(callback) | 268 close: function(callback) |
| 269 { | 269 { |
| 270 /** | 270 /** |
| 271 * @this {WebInspector.HeapSnapshotLoaderProxy} | 271 * @this {WebInspector.HeapSnapshotLoaderProxy} |
| 272 */ | 272 */ |
| 273 function buildSnapshot() | 273 function buildSnapshot() |
| 274 { | 274 { |
| 275 if (callback) | 275 if (callback) |
| 276 callback(); | 276 callback(); |
| 277 this.callFactoryMethod(updateStaticData.bind(this), "buildSnapshot",
WebInspector.HeapSnapshotProxy); | 277 var showHiddenData = WebInspector.settings.showAdvancedHeapSnapshotP
roperties.get(); |
| 278 this.callFactoryMethod(updateStaticData.bind(this), "buildSnapshot",
WebInspector.HeapSnapshotProxy, showHiddenData); |
| 278 } | 279 } |
| 279 | 280 |
| 280 /** | 281 /** |
| 281 * @param {!WebInspector.HeapSnapshotProxy} snapshotProxy | 282 * @param {!WebInspector.HeapSnapshotProxy} snapshotProxy |
| 282 * @this {WebInspector.HeapSnapshotLoaderProxy} | 283 * @this {WebInspector.HeapSnapshotLoaderProxy} |
| 283 */ | 284 */ |
| 284 function updateStaticData(snapshotProxy) | 285 function updateStaticData(snapshotProxy) |
| 285 { | 286 { |
| 286 this.dispose(); | 287 this.dispose(); |
| 287 snapshotProxy.setProfileUid(this._profileUid); | 288 snapshotProxy.setProfileUid(this._profileUid); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 this.callMethod(callback, "nodeClassName", snapshotObjectId); | 334 this.callMethod(callback, "nodeClassName", snapshotObjectId); |
| 334 }, | 335 }, |
| 335 | 336 |
| 336 dominatorIdsForNode: function(nodeIndex, callback) | 337 dominatorIdsForNode: function(nodeIndex, callback) |
| 337 { | 338 { |
| 338 this.callMethod(callback, "dominatorIdsForNode", nodeIndex); | 339 this.callMethod(callback, "dominatorIdsForNode", nodeIndex); |
| 339 }, | 340 }, |
| 340 | 341 |
| 341 /** | 342 /** |
| 342 * @param {number} nodeIndex | 343 * @param {number} nodeIndex |
| 343 * @param {boolean} showHiddenData | |
| 344 * @return {!WebInspector.HeapSnapshotProviderProxy} | 344 * @return {!WebInspector.HeapSnapshotProviderProxy} |
| 345 */ | 345 */ |
| 346 createEdgesProvider: function(nodeIndex, showHiddenData) | 346 createEdgesProvider: function(nodeIndex) |
| 347 { | 347 { |
| 348 return /** @type {!WebInspector.HeapSnapshotProviderProxy} */ (this.call
FactoryMethod(null, "createEdgesProvider", WebInspector.HeapSnapshotProviderProx
y, nodeIndex, showHiddenData)); | 348 return this.callFactoryMethod(null, "createEdgesProvider", WebInspector.
HeapSnapshotProviderProxy, nodeIndex); |
| 349 }, | 349 }, |
| 350 | 350 |
| 351 /** | 351 /** |
| 352 * @param {number} nodeIndex | 352 * @param {number} nodeIndex |
| 353 * @param {boolean} showHiddenData | |
| 354 * @return {!WebInspector.HeapSnapshotProviderProxy} | 353 * @return {!WebInspector.HeapSnapshotProviderProxy} |
| 355 */ | 354 */ |
| 356 createRetainingEdgesProvider: function(nodeIndex, showHiddenData) | 355 createRetainingEdgesProvider: function(nodeIndex) |
| 357 { | 356 { |
| 358 return /** @type {!WebInspector.HeapSnapshotProviderProxy} */ (this.call
FactoryMethod(null, "createRetainingEdgesProvider", WebInspector.HeapSnapshotPro
viderProxy, nodeIndex, showHiddenData)); | 357 return this.callFactoryMethod(null, "createRetainingEdgesProvider", WebI
nspector.HeapSnapshotProviderProxy, nodeIndex); |
| 359 }, | 358 }, |
| 360 | 359 |
| 361 /** | 360 /** |
| 362 * @param {string} baseSnapshotId | 361 * @param {string} baseSnapshotId |
| 363 * @param {string} className | 362 * @param {string} className |
| 364 * @return {?WebInspector.HeapSnapshotProviderProxy} | 363 * @return {?WebInspector.HeapSnapshotProviderProxy} |
| 365 */ | 364 */ |
| 366 createAddedNodesProvider: function(baseSnapshotId, className) | 365 createAddedNodesProvider: function(baseSnapshotId, className) |
| 367 { | 366 { |
| 368 return this.callFactoryMethod(null, "createAddedNodesProvider", WebInspe
ctor.HeapSnapshotProviderProxy, baseSnapshotId, className); | 367 return this.callFactoryMethod(null, "createAddedNodesProvider", WebInspe
ctor.HeapSnapshotProviderProxy, baseSnapshotId, className); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 * @param {!WebInspector.HeapSnapshotCommon.ComparatorConfig} comparator | 530 * @param {!WebInspector.HeapSnapshotCommon.ComparatorConfig} comparator |
| 532 * @param {function()} callback | 531 * @param {function()} callback |
| 533 */ | 532 */ |
| 534 sortAndRewind: function(comparator, callback) | 533 sortAndRewind: function(comparator, callback) |
| 535 { | 534 { |
| 536 this.callMethod(callback, "sortAndRewind", comparator); | 535 this.callMethod(callback, "sortAndRewind", comparator); |
| 537 }, | 536 }, |
| 538 | 537 |
| 539 __proto__: WebInspector.HeapSnapshotProxyObject.prototype | 538 __proto__: WebInspector.HeapSnapshotProxyObject.prototype |
| 540 } | 539 } |
| OLD | NEW |