Memory Profiling For Mere Mortals

Garbage Collector

gc-nodes

  • node 8 and 7 reference no other nodes, there retaining size is equal to its shallow size
  • node 6 retains node 8, therefore its retaining size is the it's own shallow size plus the retaining size of node 8