I am looking for something simpler than JProfiler to profile a Java method, something that can hook into the JVM.
I call a method on an object (in JAVA)
ObjectX objectX= new ObjectX();
objectX.callSomeMethod();
I woudl like to be able to see all the methods and time that are called with this ocasion:
(Call tree)
callSomeMethod() time took
- callOtherMethod() time took
call other method time took
call security method time took
- callMethodx.... time took
.....
Is there a tool for gather this information ?
to be more clear i am looking for something more simple like SLF4J profiler
+ Profiler [BASIC] |
-- elapsed time [A] 220.487 milliseconds.
-- elapsed time [B] 2499.866 milliseconds.
-- elapsed time [OTHER] 3300.745 milliseconds.
-- Total [BASIC] 6022.568 milliseconds.
But on SL4j you have to manually put the code profiled in the code.
I was thinking is possible to have something similar via another profiling tool.
Thanks
What you are looking for is Java Profilers. I suggest you download a demo version of Yourkit and use it to profile your application.