IOW, a flag so that each node has not only the size it currently shows, but also the sum of the sizes of all its parents. This way it may be easier to know “if I remove these gc roots I'll free this amount of space” or “if I want this amount of space I must remove these gc roots”.
IOW, a flag so that each node has not only the size it currently shows, but also the sum of the sizes of all its parents. This way it may be easier to know “if I remove these gc roots I'll free this amount of space” or “if I want this amount of space I must remove these gc roots”.