[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ews.eclipse.technology.aspectj] Re: call vs execution

Hi Mouna,

I don't think there would be any difference in terms of performance between using call and using execution. The main difference is the join point that the pointcut matches. Execution matches the method itself, while call matches calls to the method *from other places*. So if you wanted to trace all your methods then you would use execution. If you wanted to trace calls from your code to methods in a third party library that you didn't have the source code for then you would use call.

Hope this helps. There is more information about join point matching at the start of the AspectJ 5 Developer's Notebook
(http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/aspectj-home/doc/ajdk15notebook/index.html) and a thread on the aosd-discuss mailing list that might also be of interest - http://aosd.net/pipermail/discuss_aosd.net/2005-January/001324.html


In future you may like to use the AspectJ mailing list for these kinds of questions (aspectj-users@xxxxxxxxxxx) as this is read by more people and so you are more likely to get a reply, or several.

Thanks,

Sian

Mouna wrote:
Thank you Sian. I've read the section you pointed, but I'm still confused!
What would be the difference in term of results or performance if I use the call pointcut with tracing aspects instead of execution one (as said in the doc) for example?
I still don't understand effectively the difference!
Thank you for help.