mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1022004 - Support loading memory reports that already have heap-unclassified defined. r=njn
This commit is contained in:
parent
216229ce6c
commit
49ca52fc93
@ -1233,6 +1233,12 @@ function addHeapUnclassifiedNode(aT, aHeapAllocatedNode, aHeapTotal)
|
||||
if (aHeapAllocatedNode === undefined)
|
||||
return false;
|
||||
|
||||
if (aT.findKid("heap-unclassified")) {
|
||||
// heap-unclassified was already calculated, there's nothing left to do.
|
||||
// This can happen when memory reports are exported from areweslimyet.com.
|
||||
return true;
|
||||
}
|
||||
|
||||
assert(aHeapAllocatedNode._isDegenerate, "heap-allocated is not degenerate");
|
||||
let heapAllocatedBytes = aHeapAllocatedNode._amount;
|
||||
let heapUnclassifiedT = new TreeNode("heap-unclassified", UNITS_BYTES);
|
||||
|
Loading…
Reference in New Issue
Block a user