@Override public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) { MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions); if (mv == null || mset.isA(name, desc) == false) { return mv; } if (AsmUtil.isSpecial(name)) { return mv; } String fullname = className.replace('/', '.') + "#" + name; int fullname_hash = DataProxy.sendMethodName(fullname); return new DbcOpenMV(access, desc, mv, fullname, fullname_hash); } }
@Override public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) { MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions); if (mv == null || mset.isA(name, desc) == false) { return mv; } if (AsmUtil.isSpecial(name)) { return mv; } String fullname = className.replace('/', '.') + "#" + name; int fullname_hash = DataProxy.sendMethodName(fullname); return new DbcOpenMV(access, desc, mv, fullname, fullname_hash); } }
public static Object dbcOpenStart(int hash, String msg, Object pool) { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return null; if (conf.profile_connection_open_enabled == false) return null; MethodStep p = new MethodStep(); p.start_time = (int) (System.currentTimeMillis() - ctx.startTime); if (ctx.profile_thread_cputime) { p.start_cpu = (int) (SysJMX.getCurrentThreadCPU() - ctx.startCpu); } DBURL dbUrl = getUrl(ctx, msg, pool); if (dbUrl != unknown) { hash = DataProxy.sendMethodName(dbUrl.description); int urlHash = DataProxy.sendObjName(dbUrl.url); ctx.lastDbUrl = urlHash; } else { ctx.lastDbUrl = 0; } p.hash = hash; ctx.profile.push(p); if (conf.profile_connection_open_fullstack_enabled) { String stack = ThreadUtil.getStackTrace(Thread.currentThread().getStackTrace(), 2); MessageStep ms = new MessageStep(stack); ms.start_time = (int) (System.currentTimeMillis() - ctx.startTime); ctx.profile.add(ms); } LocalContext lctx = new LocalContext(ctx, p); return lctx; }
public static Object dbcOpenStart(int hash, String msg, Object pool) { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return null; if (conf.profile_connection_open_enabled == false) return null; MethodStep p = new MethodStep(); p.start_time = (int) (System.currentTimeMillis() - ctx.startTime); if (ctx.profile_thread_cputime) { p.start_cpu = (int) (SysJMX.getCurrentThreadCPU() - ctx.startCpu); } DBURL dbUrl = getUrl(ctx, msg, pool); if (dbUrl != unknown) { hash = DataProxy.sendMethodName(dbUrl.description); int urlHash = DataProxy.sendObjName(dbUrl.url); ctx.lastDbUrl = urlHash; } else { ctx.lastDbUrl = 0; } p.hash = hash; ctx.profile.push(p); if (conf.profile_connection_open_fullstack_enabled) { String stack = ThreadUtil.getStackTrace(Thread.currentThread().getStackTrace(), 2); MessageStep ms = new MessageStep(stack); ms.start_time = (int) (System.currentTimeMillis() - ctx.startTime); ctx.profile.add(ms); } LocalContext lctx = new LocalContext(ctx, p); return lctx; }
int fullname_hash = DataProxy.sendMethodName(fullname);
int fullname_hash = DataProxy.sendMethodName(fullname);
ms.hash = DataProxy.sendMethodName(service_name); ms.start_time = (int) (System.currentTimeMillis() - ctx.startTime); if (ctx.profile_thread_cputime) {
ms.hash = DataProxy.sendMethodName(service_name); ms.start_time = (int) (System.currentTimeMillis() - ctx.startTime); if (ctx.profile_thread_cputime) {
@Override public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) { MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions); if (mv == null || mset.isA(name, desc) == false) { return mv; } if (AsmUtil.isSpecial(name)) { return mv; } String fullname = className.replace('/', '.') + "#" + name; int fullname_hash = DataProxy.sendMethodName(fullname); return new DbcOpenMV(access, desc, mv, fullname, fullname_hash); } }
public static Object dbcOpenStart(int hash, String msg, Object pool) { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return null; if (conf.profile_connection_open_enabled == false) return null; MethodStep p = new MethodStep(); p.start_time = (int) (System.currentTimeMillis() - ctx.startTime); if (ctx.profile_thread_cputime) { p.start_cpu = (int) (SysJMX.getCurrentThreadCPU() - ctx.startCpu); } DBURL dbUrl = getUrl(ctx, msg, pool); if (dbUrl != unknown) { hash = DataProxy.sendMethodName(dbUrl.description); int urlHash = DataProxy.sendObjName(dbUrl.url); ctx.lastDbUrl = urlHash; } else { ctx.lastDbUrl = 0; } p.hash = hash; ctx.profile.push(p); if (conf.profile_connection_open_fullstack_enabled) { String stack = ThreadUtil.getStackTrace(Thread.currentThread().getStackTrace(), 2); MessageStep ms = new MessageStep(stack); ms.start_time = (int) (System.currentTimeMillis() - ctx.startTime); ctx.profile.add(ms); } LocalContext lctx = new LocalContext(ctx, p); return lctx; }
int fullname_hash = DataProxy.sendMethodName(fullname);
ms.hash = DataProxy.sendMethodName(service_name); ms.start_time = (int) (System.currentTimeMillis() - ctx.startTime); if (ctx.profile_thread_cputime) {