Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duration of individual methods (Java)

Is there some kind of tool/plugin (preferably for eclipse) that would allow me to determine how much time each method of my code is taking or something along those lines? Or perhaps determine what is taking an unusually large amount of time? Thanks in advance!

like image 866
arshajii Avatar asked Apr 29 '12 19:04

arshajii


Video Answer


1 Answers

Take a look at The Eclipse Test & Performance Tools Platform (TPTP) - it allows you to profile all methods entered for a single execution. It is a very un-intrusive method - it does not force you to make code changes.

Here are the install instructions.

Edit: It seams, that TPTP is not available after Eclipse Helios. You can use VisualVM as an stand-alone profiler. If you want Eclipse integration, there is the tool JVM Monitor, but I have note used that.

like image 130
jmruc Avatar answered Oct 02 '22 21:10

jmruc