@ Override protected void onMethodEntry ( ) { if ( enabledListeners . isEmpty ( ) ) return ; String probeKey = createKey ( ) ; ProbeImpl probe = getProbe ( probeKey ) ; long probeId = probe . getIdentifier ( ) ; setProbeInProgress ( true ) ; visitLdcInsn ( Long . valueOf ( probeId ) ) ; // long1 long2 if ( isStatic ( ) || isConstructor ( ) ) { visitInsn ( ACONST_NULL ) ; // long1 long2 this } else { visitVarInsn ( ALOAD , 0 ) ; // long1 long2 this } visitInsn ( ACONST_NULL ) ; // long1 long2 this that createParameterArray ( ) ; // long1 long2 this that args visitFireProbeInvocation ( ) ; setProbeInProgress ( false ) ; setProbeListeners ( probe , enabledListeners ) ; }
Inject the byte code required to fire a method entry probe .