Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] Method duration, a hint without using around advice ?

OK thanks

 
 
Jean-Louis Pasturel
jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx
 

-----Message d'origine-----
De : aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] De la part de Bruno De Fraine
Envoyé : lundi 28 avril 2008 09:00
À : aspectj-users@xxxxxxxxxxx
Objet : Re: [aspectj-users] Method duration,a hint without using around
advice ?

Hello,

On 28-apr-08, at 08:46, <jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx>
<jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx 
 > 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: Bruno.De.Fraine@xxxxxxxxx


_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
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.
********************************


Back to the top