cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring the time duration of a Java webdynpro event

AntonioSanz
Active Participant
0 Kudos

Hi everybody,

I would like to know if there are a standart wy of measuring the time duration in seconds of a Java webdynpro event.

We are developing a Java Webdynpro application and we need to improve the performance of our business logic associated to the events which are thrown by our java webdynpro views. We want to do this by a stardart way, and if it possible without coding any line. So, is there any kind of monitorization of this information? or is there a tool to do that?

We would need this information:

- Name of View

- Name of event

- Start time

- End time

Thanks for all.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Antonio Sanz ,

Did you do logging for your application?

If so, you can go and get the information from the logs.(This includes the time in milli seconds)

(Assuming that you have written the logs at starting and ending of each method.)

If not, I think it is not possible with out code change.

If you want to do the code change you can do like this:


method start(){
long startTime = System.currentTimeMillis();
......
......
.....
long endTime = System.currentTimeMillis();
long timeTaken = endTime - startTime; // You can print the "timeTaken" on the screen or you can log the information.

Regards,

Jaya.

Answers (1)

Answers (1)

0 Kudos

This really has nothing to do w/ NWDI.... But you can use Wily Introscope to get method level times when you do a transaction trace. If you need more granular timing, you would need to insert some debug code.

- Jason

Edited by: Jason Russo on Jul 8, 2009 4:56 PM