static void setInstrumentation(Instrumentation inst) {
    instrumentation = inst;
  }
The logic for recording allocations, called from bytecode rewritten by {@link
AllocationInstrumenter}.
src/main/java/com/google/monitoring/runtime/instrumentation/AllocationRecorder.java