OK thanks Jean-Louis Pasturel [EMAIL PROTECTED]
-----Message d'origine----- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Bruno De Fraine Envoyé : lundi 28 avril 2008 09:00 À : [email protected] Objet : Re: [aspectj-users] Method duration,a hint without using around advice ? 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 ********************************* This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. Messages are susceptible to alteration. France Telecom Group shall not be liable for the message if altered, changed or falsified. If you are not the intended addressee of this message, please cancel it immediately and inform the sender. ******************************** _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
