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