Skip to main content



      Home
Home » Language IDEs » AspectJ » How to trace the runtime of methods?
How to trace the runtime of methods? [message #594723] Tue, 12 September 2006 09:50
Eclipse UserFriend
Originally posted by: formatzeh.gmx.de

Hello Newsgroup,
I want to trace the runtime of methods by using
System.currentTimeMillis(). So first I had a class variable which was
set in the before-advice and was subtracted in the after-advice and then
printed to the output-stream. But then I recognized when there are
nested calls to methods that the runtime of the outer method isn't
correct. Well it is correct because the class variable was set in the
last nested method. So the subtraction results a wrong value. So my idea
was to pass a Calendar-Object from before to after-advice. so that every
method-call has it's own Calendar-Object. But how do I realize this? Is
it possible in some way? Sorry for my bad English - my German is better ;)

greetz
Gilbert Mirenque
Previous Topic:AJDT New Feature: Improved Binary Weaving support
Next Topic:How to trace the runtime of methods?
Goto Forum:
  


Current Time: Thu Jun 12 14:26:14 EDT 2025

Powered by FUDForum. Page generated in 0.04275 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top