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 ?


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

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 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

Back to the top