| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 disposeWorker: function() | 216 disposeWorker: function() |
| 217 { | 217 { |
| 218 this._worker.dispose(); | 218 this._worker.dispose(); |
| 219 }, | 219 }, |
| 220 | 220 |
| 221 /** | 221 /** |
| 222 * @param {?function(...[?])} callback | 222 * @param {?function(...[?])} callback |
| 223 * @param {string} methodName | 223 * @param {string} methodName |
| 224 * @param {function (new:T, ...[?])} proxyConstructor | 224 * @param {function (new:T, ...[?])} proxyConstructor |
| 225 * @param {...*} var_args | 225 * @param {...*} var_args |
| 226 * @return {?WebInspector.HeapSnapshotProviderProxy} | 226 * @return {?T} |
| 227 * @template T | 227 * @template T |
| 228 */ | 228 */ |
| 229 callFactoryMethod: function(callback, methodName, proxyConstructor, var_args
) | 229 callFactoryMethod: function(callback, methodName, proxyConstructor, var_args
) |
| 230 { | 230 { |
| 231 return this._callWorker("callFactoryMethod", Array.prototype.slice.call(
arguments, 0)); | 231 return this._callWorker("callFactoryMethod", Array.prototype.slice.call(
arguments, 0)); |
| 232 }, | 232 }, |
| 233 | 233 |
| 234 /** | 234 /** |
| 235 * @param {function(T)|undefined} callback | 235 * @param {function(T)|undefined} callback |
| 236 * @param {string} getterName | 236 * @param {string} getterName |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 */ | 289 */ |
| 290 close: function(callback) | 290 close: function(callback) |
| 291 { | 291 { |
| 292 /** | 292 /** |
| 293 * @this {WebInspector.HeapSnapshotLoaderProxy} | 293 * @this {WebInspector.HeapSnapshotLoaderProxy} |
| 294 */ | 294 */ |
| 295 function buildSnapshot() | 295 function buildSnapshot() |
| 296 { | 296 { |
| 297 if (callback) | 297 if (callback) |
| 298 callback(); | 298 callback(); |
| 299 this.callFactoryMethod(updateStaticData.bind(this), "buildSnapshot",
WebInspector.HeapSnapshotProxy); | 299 var showHiddenData = WebInspector.settings.showAdvancedHeapSnapshotP
roperties.get(); |
| 300 this.callFactoryMethod(updateStaticData.bind(this), "buildSnapshot",
WebInspector.HeapSnapshotProxy, showHiddenData); |
| 300 } | 301 } |
| 301 | 302 |
| 302 /** | 303 /** |
| 303 * @param {!WebInspector.HeapSnapshotProxy} snapshotProxy | 304 * @param {!WebInspector.HeapSnapshotProxy} snapshotProxy |
| 304 * @this {WebInspector.HeapSnapshotLoaderProxy} | 305 * @this {WebInspector.HeapSnapshotLoaderProxy} |
| 305 */ | 306 */ |
| 306 function updateStaticData(snapshotProxy) | 307 function updateStaticData(snapshotProxy) |
| 307 { | 308 { |
| 308 this.dispose(); | 309 this.dispose(); |
| 309 snapshotProxy.setProfileUid(this._profileUid); | 310 snapshotProxy.setProfileUid(this._profileUid); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 this.callMethod(callback, "nodeClassName", snapshotObjectId); | 356 this.callMethod(callback, "nodeClassName", snapshotObjectId); |
| 356 }, | 357 }, |
| 357 | 358 |
| 358 dominatorIdsForNode: function(nodeIndex, callback) | 359 dominatorIdsForNode: function(nodeIndex, callback) |
| 359 { | 360 { |
| 360 this.callMethod(callback, "dominatorIdsForNode", nodeIndex); | 361 this.callMethod(callback, "dominatorIdsForNode", nodeIndex); |
| 361 }, | 362 }, |
| 362 | 363 |
| 363 /** | 364 /** |
| 364 * @param {number} nodeIndex | 365 * @param {number} nodeIndex |
| 365 * @param {boolean} showHiddenData | |
| 366 * @return {?WebInspector.HeapSnapshotProviderProxy} | 366 * @return {?WebInspector.HeapSnapshotProviderProxy} |
| 367 */ | 367 */ |
| 368 createEdgesProvider: function(nodeIndex, showHiddenData) | 368 createEdgesProvider: function(nodeIndex) |
| 369 { | 369 { |
| 370 return this.callFactoryMethod(null, "createEdgesProvider", WebInspector.
HeapSnapshotProviderProxy, nodeIndex, showHiddenData); | 370 return this.callFactoryMethod(null, "createEdgesProvider", WebInspector.
HeapSnapshotProviderProxy, nodeIndex); |
| 371 }, | 371 }, |
| 372 | 372 |
| 373 /** | 373 /** |
| 374 * @param {number} nodeIndex | 374 * @param {number} nodeIndex |
| 375 * @param {boolean} showHiddenData | |
| 376 * @return {?WebInspector.HeapSnapshotProviderProxy} | 375 * @return {?WebInspector.HeapSnapshotProviderProxy} |
| 377 */ | 376 */ |
| 378 createRetainingEdgesProvider: function(nodeIndex, showHiddenData) | 377 createRetainingEdgesProvider: function(nodeIndex) |
| 379 { | 378 { |
| 380 return this.callFactoryMethod(null, "createRetainingEdgesProvider", WebI
nspector.HeapSnapshotProviderProxy, nodeIndex, showHiddenData); | 379 return this.callFactoryMethod(null, "createRetainingEdgesProvider", WebI
nspector.HeapSnapshotProviderProxy, nodeIndex); |
| 381 }, | 380 }, |
| 382 | 381 |
| 383 /** | 382 /** |
| 384 * @param {string} baseSnapshotId | 383 * @param {string} baseSnapshotId |
| 385 * @param {string} className | 384 * @param {string} className |
| 386 * @return {?WebInspector.HeapSnapshotProviderProxy} | 385 * @return {?WebInspector.HeapSnapshotProviderProxy} |
| 387 */ | 386 */ |
| 388 createAddedNodesProvider: function(baseSnapshotId, className) | 387 createAddedNodesProvider: function(baseSnapshotId, className) |
| 389 { | 388 { |
| 390 return this.callFactoryMethod(null, "createAddedNodesProvider", WebInspe
ctor.HeapSnapshotProviderProxy, baseSnapshotId, className); | 389 return this.callFactoryMethod(null, "createAddedNodesProvider", WebInspe
ctor.HeapSnapshotProviderProxy, baseSnapshotId, className); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 * @param {!WebInspector.HeapSnapshotCommon.ComparatorConfig} comparator | 552 * @param {!WebInspector.HeapSnapshotCommon.ComparatorConfig} comparator |
| 554 * @param {function()} callback | 553 * @param {function()} callback |
| 555 */ | 554 */ |
| 556 sortAndRewind: function(comparator, callback) | 555 sortAndRewind: function(comparator, callback) |
| 557 { | 556 { |
| 558 this.callMethod(callback, "sortAndRewind", comparator); | 557 this.callMethod(callback, "sortAndRewind", comparator); |
| 559 }, | 558 }, |
| 560 | 559 |
| 561 __proto__: WebInspector.HeapSnapshotProxyObject.prototype | 560 __proto__: WebInspector.HeapSnapshotProxyObject.prototype |
| 562 } | 561 } |
| OLD | NEW |