public static void asyncPossibleInstanceInitInvoked(Object keyObject) { try { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return; if (TransferMap.get(System.identityHashCode(keyObject)) != null) { return; } long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid; ctx.gxid = gxid; long callee = KeyGen.next(); ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep(); threadCallPossibleStep.txid = callee; threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime); String initObjName = keyObject.toString().replace("$ByteBuddy", "").replace("$$Lambda", "$$L"); initObjName = AgentCommonConstant.normalizeHashCode(initObjName); threadCallPossibleStep.hash = DataProxy.sendApicall(initObjName); ctx.profile.add(threadCallPossibleStep); TransferMap.put(System.identityHashCode(keyObject), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep); } catch (Throwable t) { Logger.println("B1204", "Exception: asyncPossibleInstanceInitInvoked", t); } }
break; case THREAD_CALL_POSSIBLE: textLoader.addTextHash(textTypeEnum, ((ThreadCallPossibleStep) step).getHash()); break; case SPAN:
break; case THREAD_CALL_POSSIBLE: mainValue = textTypeEnum.getTextModel().getTextIfNullDefault(date, ((ThreadCallPossibleStep) step).getHash(), serverId); break; case SPAN:
public static void asyncPossibleInstanceInitInvoked(Object keyObject) { try { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return; if (TransferMap.get(System.identityHashCode(keyObject)) != null) { return; } long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid; ctx.gxid = gxid; long callee = KeyGen.next(); ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep(); threadCallPossibleStep.txid = callee; threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime); String initObjName = keyObject.toString().replace("$ByteBuddy", "").replace("$$Lambda", "$$L"); initObjName = AgentCommonConstant.normalizeHashCode(initObjName); threadCallPossibleStep.hash = DataProxy.sendApicall(initObjName); ctx.profile.add(threadCallPossibleStep); TransferMap.put(System.identityHashCode(keyObject), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep); } catch (Throwable t) { Logger.println("B1204", "Exception: asyncPossibleInstanceInitInvoked", t); } }
break; case THREAD_CALL_POSSIBLE: textLoader.addTextHash(textTypeEnum, ((ThreadCallPossibleStep) step).getHash()); break; case SPAN:
public static void callRunnableInitInvoked(Object callRunnableObj) { try { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return; if (TransferMap.get(System.identityHashCode(callRunnableObj)) != null) { return; } long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid; ctx.gxid = gxid; long callee = KeyGen.next(); ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep(); threadCallPossibleStep.txid = callee; threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime); String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callRunnableObj.toString(); threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName); ctx.lastThreadCallName = null; threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName); threadCallPossibleStep.nameTemp = threadCallName; ctx.profile.add(threadCallPossibleStep); TransferMap.put(System.identityHashCode(callRunnableObj), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep); } catch (Throwable t) { Logger.println("B1203", "Exception: callRunnableInitInvoked", t); } }
break; case THREAD_CALL_POSSIBLE: mainValue = textTypeEnum.getTextModel().getTextIfNullDefault(date, ((ThreadCallPossibleStep) step).getHash(), serverId); break; case SPAN:
public static void executorServiceExecuted(Object callRunnable) { try { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return; if (callRunnable == null) return; if (callRunnable instanceof WrTaskCallable) return; if (TransferMap.get(System.identityHashCode(callRunnable)) != null) { return; } long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid; ctx.gxid = gxid; long callee = KeyGen.next(); ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep(); threadCallPossibleStep.txid = callee; threadCallPossibleStep.threaded = 1; threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime); String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callRunnable.getClass().getName(); threadCallName = StringUtil.removeLastString(threadCallName, '/'); threadCallName = threadCallName.replace("$$Lambda", "$$L"); threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName); ctx.lastThreadCallName = null; threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName); threadCallPossibleStep.nameTemp = threadCallName; ctx.profile.add(threadCallPossibleStep); TransferMap.put(System.identityHashCode(callRunnable), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep); } catch (Throwable t) { Logger.println("B1204", "Exception: executorServiceExecuted", t); } }
public static void callRunnableInitInvoked(Object callRunnableObj) { try { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return; if (TransferMap.get(System.identityHashCode(callRunnableObj)) != null) { return; } long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid; ctx.gxid = gxid; long callee = KeyGen.next(); ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep(); threadCallPossibleStep.txid = callee; threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime); String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callRunnableObj.toString(); threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName); ctx.lastThreadCallName = null; threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName); threadCallPossibleStep.nameTemp = threadCallName; ctx.profile.add(threadCallPossibleStep); TransferMap.put(System.identityHashCode(callRunnableObj), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep); } catch (Throwable t) { Logger.println("B1203", "Exception: callRunnableInitInvoked", t); } }
public static void springAsyncExecutionSubmit(Object _this, Callable callable) { try { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return; if (TransferMap.get(System.identityHashCode(callable)) != null) { return; } long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid; ctx.gxid = gxid; long callee = KeyGen.next(); ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep(); threadCallPossibleStep.txid = callee; threadCallPossibleStep.threaded = 1; threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime); String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callable.toString(); threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName); ctx.lastThreadCallName = null; threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName); threadCallPossibleStep.nameTemp = threadCallName; ctx.profile.add(threadCallPossibleStep); TransferMap.put(System.identityHashCode(callable), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep); } catch (Throwable t) { Logger.println("B1202", "Exception: springAsyncExecutionSubmit", t); } }
public static void springAsyncExecutionSubmit(Object _this, Callable callable) { try { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return; if (TransferMap.get(System.identityHashCode(callable)) != null) { return; } long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid; ctx.gxid = gxid; long callee = KeyGen.next(); ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep(); threadCallPossibleStep.txid = callee; threadCallPossibleStep.threaded = 1; threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime); String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callable.toString(); threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName); ctx.lastThreadCallName = null; threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName); threadCallPossibleStep.nameTemp = threadCallName; ctx.profile.add(threadCallPossibleStep); TransferMap.put(System.identityHashCode(callable), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep); } catch (Throwable t) { Logger.println("B1202", "Exception: springAsyncExecutionSubmit", t); } }
public static void executorServiceExecuted(Object callRunnable) { try { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return; if (callRunnable == null) return; if (callRunnable instanceof WrTaskCallable) return; if (TransferMap.get(System.identityHashCode(callRunnable)) != null) { return; } long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid; ctx.gxid = gxid; long callee = KeyGen.next(); ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep(); threadCallPossibleStep.txid = callee; threadCallPossibleStep.threaded = 1; threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime); String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callRunnable.getClass().getName(); threadCallName = StringUtil.removeLastString(threadCallName, '/'); threadCallName = threadCallName.replace("$$Lambda", "$$L"); threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName); ctx.lastThreadCallName = null; threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName); threadCallPossibleStep.nameTemp = threadCallName; ctx.profile.add(threadCallPossibleStep); TransferMap.put(System.identityHashCode(callRunnable), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep); } catch (Throwable t) { Logger.println("B1204", "Exception: executorServiceExecuted", t); } }
public static void asyncPossibleInstanceInitInvoked(Object keyObject) { try { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return; if (TransferMap.get(System.identityHashCode(keyObject)) != null) { return; } long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid; ctx.gxid = gxid; long callee = KeyGen.next(); ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep(); threadCallPossibleStep.txid = callee; threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime); String initObjName = keyObject.toString().replace("$ByteBuddy", "").replace("$$Lambda", "$$L"); initObjName = AgentCommonConstant.normalizeHashCode(initObjName); threadCallPossibleStep.hash = DataProxy.sendApicall(initObjName); ctx.profile.add(threadCallPossibleStep); TransferMap.put(System.identityHashCode(keyObject), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep); } catch (Throwable t) { Logger.println("B1204", "Exception: asyncPossibleInstanceInitInvoked", t); } }
public static void springAsyncExecutionSubmit(Object _this, Callable callable) { try { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return; if (TransferMap.get(System.identityHashCode(callable)) != null) { return; } long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid; ctx.gxid = gxid; long callee = KeyGen.next(); ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep(); threadCallPossibleStep.txid = callee; threadCallPossibleStep.threaded = 1; threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime); String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callable.toString(); threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName); ctx.lastThreadCallName = null; threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName); threadCallPossibleStep.nameTemp = threadCallName; ctx.profile.add(threadCallPossibleStep); TransferMap.put(System.identityHashCode(callable), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep); } catch (Throwable t) { Logger.println("B1202", "Exception: springAsyncExecutionSubmit", t); } }
public static void callRunnableInitInvoked(Object callRunnableObj) { try { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return; if (TransferMap.get(System.identityHashCode(callRunnableObj)) != null) { return; } long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid; ctx.gxid = gxid; long callee = KeyGen.next(); ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep(); threadCallPossibleStep.txid = callee; threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime); String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callRunnableObj.toString(); threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName); ctx.lastThreadCallName = null; threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName); threadCallPossibleStep.nameTemp = threadCallName; ctx.profile.add(threadCallPossibleStep); TransferMap.put(System.identityHashCode(callRunnableObj), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep); } catch (Throwable t) { Logger.println("B1203", "Exception: callRunnableInitInvoked", t); } }
public static void executorServiceExecuted(Object callRunnable) { try { TraceContext ctx = TraceContextManager.getContext(); if (ctx == null) return; if (callRunnable == null) return; if (callRunnable instanceof WrTaskCallable) return; if (TransferMap.get(System.identityHashCode(callRunnable)) != null) { return; } long gxid = ctx.gxid == 0 ? ctx.txid : ctx.gxid; ctx.gxid = gxid; long callee = KeyGen.next(); ThreadCallPossibleStep threadCallPossibleStep = new ThreadCallPossibleStep(); threadCallPossibleStep.txid = callee; threadCallPossibleStep.threaded = 1; threadCallPossibleStep.start_time = (int) (System.currentTimeMillis() - ctx.startTime); String threadCallName = (ctx.lastThreadCallName != null) ? ctx.lastThreadCallName : callRunnable.getClass().getName(); threadCallName = StringUtil.removeLastString(threadCallName, '/'); threadCallName = threadCallName.replace("$$Lambda", "$$L"); threadCallName = AgentCommonConstant.normalizeHashCode(threadCallName); ctx.lastThreadCallName = null; threadCallPossibleStep.hash = DataProxy.sendApicall(threadCallName); threadCallPossibleStep.nameTemp = threadCallName; ctx.profile.add(threadCallPossibleStep); TransferMap.put(System.identityHashCode(callRunnable), gxid, ctx.txid, callee, ctx.xType, Thread.currentThread().getId(), threadCallPossibleStep); } catch (Throwable t) { Logger.println("B1204", "Exception: executorServiceExecuted", t); } }