mirror of
https://github.com/wahyd4/pinpoint.git
synced 2026-08-22 19:27:13 +10:00
[유치수] [ARCUS-127] refactoring sender.
git-svn-id: http://svn.bds.nhncorp.com/pe/hippo-tomcat-profiler/trunk@482 84d0f5b1-2673-498c-a247-62c4ff18d310
This commit is contained in:
@@ -4,8 +4,8 @@ import javassist.ClassPool;
|
||||
import javassist.CtClass;
|
||||
import javassist.CtMethod;
|
||||
|
||||
import com.profiler.config.TomcatProfilerConstant;
|
||||
import com.profiler.modifier.AbstractModifier;
|
||||
import com.profiler.trace.DatabaseRequestTracer;
|
||||
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
@@ -46,11 +46,11 @@ public class CubridResultSetModifier extends AbstractModifier {
|
||||
|
||||
private void updateNextMethod(CtClass cc) throws Exception {
|
||||
CtMethod method = cc.getDeclaredMethod("next", null);
|
||||
method.insertBefore("{" + TomcatProfilerConstant.CLASS_NAME_REQUEST_DATA_TRACER + ".updateFetchCount(); }");
|
||||
method.insertBefore("{" + DatabaseRequestTracer.FQCN + ".updateFetchCount(); }");
|
||||
}
|
||||
|
||||
private void updateCloseMethod(CtClass cc) throws Exception {
|
||||
CtMethod method = cc.getDeclaredMethod("close", null);
|
||||
method.insertBefore("{" + TomcatProfilerConstant.CLASS_NAME_REQUEST_DATA_TRACER + ".addResultSetData(); } ");
|
||||
method.insertBefore("{" + DatabaseRequestTracer.FQCN + ".addResultSetData(); } ");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user