I've declared two aspects as foo
& bar
over a function runFunc
and I want to capture time taken to run the function runcFunc
& Bar
in Foo
, but it is capturing the time only for runFunc
. Bar
is running independently.
I want that If I put two annotation over a function, the 1st annotation should wrap the 2nd annotation and the 2nd one should wrap the function runfunc
. How can I achieve that?
It turns out aspect can wrap other aspects just as easily as they can wrap a function.
Following code works.
The below code:
outputs the following: