|
Lines 269-304
WebInspector.HeapSnapshotConstructorsDataGrid.prototype = {
a/Source/WebCore/inspector/front-end/DetailedHeapshotView.js_sec1
|
| 269 |
this.snapshot.aggregates(false, key, filter, aggregatesReceived.bind(this, key)); |
269 |
this.snapshot.aggregates(false, key, filter, aggregatesReceived.bind(this, key)); |
| 270 |
}, |
270 |
}, |
| 271 |
|
271 |
|
| 272 |
_filterSelectIndexChanged: function(loader, profileIndex) |
272 |
_filterSelectIndexChanged: function(profiles, profileIndex) |
| 273 |
{ |
273 |
{ |
| 274 |
this._filterProfileIndex = profileIndex; |
274 |
this._filterProfileIndex = profileIndex; |
| 275 |
|
275 |
|
| 276 |
delete this._maxNodeId; |
276 |
delete this._maxNodeId; |
| 277 |
delete this._minNodeId; |
277 |
delete this._minNodeId; |
| 278 |
|
278 |
|
| 279 |
if (this._filterProfileIndex === -1) { |
279 |
if (this._filterProfileIndex !== -1) { |
| 280 |
this.populateChildren(); |
280 |
this._minNodeId = profileIndex > 0 ? profiles[profileIndex - 1].maxJSObjectId : 0; |
| 281 |
return; |
281 |
this._maxNodeId = profiles[profileIndex].maxJSObjectId; |
| 282 |
} |
|
|
| 283 |
|
| 284 |
function firstSnapshotLoaded(snapshot) |
| 285 |
{ |
| 286 |
this._maxNodeId = snapshot.maxNodeId; |
| 287 |
if (profileIndex > 0) |
| 288 |
loader(profileIndex - 1, secondSnapshotLoaded.bind(this)); |
| 289 |
else { |
| 290 |
this._minNodeId = 0; |
| 291 |
this.populateChildren(); |
| 292 |
} |
| 293 |
} |
282 |
} |
| 294 |
|
283 |
|
| 295 |
function secondSnapshotLoaded(snapshot) |
284 |
this.populateChildren(); |
| 296 |
{ |
|
|
| 297 |
this._minNodeId = snapshot.maxNodeId; |
| 298 |
this.populateChildren(); |
| 299 |
} |
| 300 |
|
| 301 |
loader(profileIndex, firstSnapshotLoaded.bind(this)); |
| 302 |
}, |
285 |
}, |
| 303 |
|
286 |
|
| 304 |
}; |
287 |
}; |
|
Lines 778-784
WebInspector.DetailedHeapshotView.prototype = {
a/Source/WebCore/inspector/front-end/DetailedHeapshotView.js_sec2
|
| 778 |
_changeFilter: function() |
761 |
_changeFilter: function() |
| 779 |
{ |
762 |
{ |
| 780 |
var profileIndex = this.filterSelectElement.selectedIndex - 1; |
763 |
var profileIndex = this.filterSelectElement.selectedIndex - 1; |
| 781 |
this.dataGrid._filterSelectIndexChanged(this._loadProfileByIndex.bind(this), profileIndex); |
764 |
this.dataGrid._filterSelectIndexChanged(this._profiles(), profileIndex); |
| 782 |
|
765 |
|
| 783 |
if (!this.currentQuery || !this._searchFinishedCallback || !this._searchResults) |
766 |
if (!this.currentQuery || !this._searchFinishedCallback || !this._searchResults) |
| 784 |
return; |
767 |
return; |