mirror of
https://gitee.com/huoyo/ko-time.git
synced 2025-12-07 01:08:26 +08:00
add the additional outputs for the methods invoked
This commit is contained in:
parent
6c7899ef9d
commit
d408ced5be
@ -43,9 +43,10 @@ public class RunTimeHandler implements MethodInterceptor {
|
|||||||
exception.setId(exception.getClassName() + exception.getName() + exception.getMessage());
|
exception.setId(exception.getClassName() + exception.getName() + exception.getMessage());
|
||||||
MethodNode current = InvokeService.getCurrentMethodNode(invocation, 0.0);
|
MethodNode current = InvokeService.getCurrentMethodNode(invocation, 0.0);
|
||||||
if (current.getClassName().equals(e.getStackTrace()[0].getClassName())) {
|
if (current.getClassName().equals(e.getStackTrace()[0].getClassName())) {
|
||||||
for (InvokedHandler invokedHandler : Context.getInvokedHandlers()) {
|
GraphService graphService = GraphService.getInstance();
|
||||||
pool.execute(()->invokedHandler.onInvoked(current,parent,parameters, invocation.getArguments()));
|
graphService.addMethodNode(current);
|
||||||
}
|
graphService.addExceptionNode(exception);
|
||||||
|
graphService.addExceptionRelation(current, exception);
|
||||||
}
|
}
|
||||||
MethodStack.clear();
|
MethodStack.clear();
|
||||||
throw e;
|
throw e;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user