[ajug-members] AspectJ question
Brian Lee
brian_a_lee at hotmail.com
Wed Sep 6 22:10:16 EDT 2006
Hello all,
I am looking at using AspectJ for my Java 1.4 project. I was going through
the online docs and googled around, but couldn't find any examples of an
aspect class that is able to capture performance times for method calls.
I would like to add a performance aspect to a set of methods so that I
output a log statement with the total time spent before and after the method
is executed.
I saw a lot of examples of before and after join points, but not one that
could introduce a local long variable to store the currentTimeMillis before
and after the method executes.
Has anyone else used aspects for this kind of performance logging? Any help
is appreciated.
Thanks,
BAL
More information about the ajug-members
mailing list