Automatically generating infrastructure for measuring the total runtime size of an object on the heap.