public Step read(DataInputX in) throws IOException { super.read(in); this.error = (int) in.readDecimal(); return this; }
public void write(DataOutputX out) throws IOException { super.write(out); out.writeDecimal(error); }
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; }
case METHOD: case METHOD2: textLoader.addTextHash(textTypeEnum, ((MethodStep) step).getHash()); break; case SQL:
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; }
case METHOD: case METHOD2: mainValue = textTypeEnum.getTextModel().getTextIfNullDefault(date, ((MethodStep) step).getHash(), serverId); break; case SQL:
public Step read(DataInputX in) throws IOException { super.read(in); this.error = (int) in.readDecimal(); return this; }
public void write(DataOutputX out) throws IOException { super.write(out); out.writeDecimal(error); }
MethodStep p = new MethodStep(); p.start_time = (int) (System.currentTimeMillis() - ctx.startTime); if (ctx.profile_thread_cputime) {
case METHOD: case METHOD2: textLoader.addTextHash(textTypeEnum, ((MethodStep) step).getHash()); break; case SQL:
public Step read(DataInputX in) throws IOException { super.read(in); this.error = (int) in.readDecimal(); return this; }
public void write(DataOutputX out) throws IOException { super.write(out); out.writeDecimal(error); }
MethodStep p = new MethodStep(); p.start_time = (int) (System.currentTimeMillis() - ctx.startTime); if (ctx.profile_thread_cputime) {
case METHOD: case METHOD2: mainValue = textTypeEnum.getTextModel().getTextIfNullDefault(date, ((MethodStep) step).getHash(), serverId); break; case SQL:
public Step read(DataInputX in) throws IOException { super.read(in); this.error = (int) in.readDecimal(); return this; }
public void write(DataOutputX out) throws IOException { super.write(out); out.writeDecimal(error); }
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 Step read(DataInputX in) throws IOException { super.read(in); this.error = (int) in.readDecimal(); return this; }
public void write(DataOutputX out) throws IOException { super.write(out); out.writeDecimal(error); }
MethodStep p = new MethodStep(); p.start_time = (int) (System.currentTimeMillis() - ctx.startTime); if (ctx.profile_thread_cputime) {