//leakcanary-repo/shark/DominatorTree/computeRetainedSizes
computeRetainedSizes¶
[jvm]\ fun computeRetainedSizes(retainedObjectIds: LongSet, objectSizeCalculator: DominatorTree.ObjectSizeCalculator): LongLongMap
Computes the size retained by retainedObjectIds using the dominator tree built using updateDominated. The shallow size of each object is provided by objectSizeCalculator.
Return¶
a map of object id to retained size.