Memory Profiling For Mere Mortals

Garbage Collector

gc-nodes

  • node 8 and 7 reference no other nodes, their retaining size is equal to their 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