question: public static void recordAllocation ( int count , String desc , Object newObj ) { if ( recordingAllocation . get ( ) == Boolean . TRUE ) { return ; } else { recordingAllocation . set ( Boolean . TRUE ) ; } Instrumentation instr = instrumentation ; if ( instr != null ) { long objectSize = - 1 ; Sampler [ ] samplers = additionalSamplers ; if ( samplers != null ) { if ( objectSize < 0 ) { objectSize = getObjectSize ( newObj , ( count >= 0 ) , instr ) ; } for ( Sampler sampler : samplers ) { sampler . sampleAllocation ( count , desc , newObj , objectSize ) ; } } } recordingAllocation . set ( Boolean . FALSE ) ; }
target:  Records the allocation.  This method is invoked on every allocation performed by the system.