Hello,

On 28-apr-08, at 08:46, <[EMAIL PROTECTED]> <[EMAIL PROTECTED] > wrote:
What is the best hint to track the duration of methods without using around advice? And more exactly, how to link the before advice and the after advice of a method, when the object is multi-threaded?


Perhaps you could employ percflow aspect instantiation? See
http://www.eclipse.org/aspectj/doc/released/progguide/semantics-aspects.html#aspect-instantiation

If you have one instance of the aspect per method invocation, it is safe to store the start time of the method as an instance variable.

Best regards,
Bruno

--
Bruno De Fraine
Vrije Universiteit Brussel
Faculty of Applied Sciences, DINF - SSEL
Room 4K208, Pleinlaan 2, B-1050 Brussels
tel: +32 (0)2 629 29 75
fax: +32 (0)2 629 28 70
e-mail: [EMAIL PROTECTED]


_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to