I have some (static) Java methods.
I have a pointcut to fire on the execution of any of these methods:
pointcut calculation() : execution(* myMethod_*(..));
Now I want to measure the time of each execution seperately.
The problem is that executions may fire at any time, while other executions still run.
I thought about two advices, before() and after(), which identify the caller to manage timers for different callers.
before() : calculation() {
}
after() : calculation() {
}
How do I implement that?
around() advice should work: