I am having a java application which makes a lot of external http calls. To identify the hot methods I have used System.currentTimeMillis()
in all methods and I observed that the methods who are actually making the external HTTP calls are the hot methods, which is quite expected.
But when I profiled the app using Java Mission Control(JMC) the Hot Methods
under Code
tab list is entirely different. In fact almost none of the methods making the external HTTP calls came up in the JMC list.
Can some one please let me know:-
- Are the
Hot Methods
(underCode section
) is based on CPU Time or Wall-Clock Time? - Is there a way I can view the list of methods which actually are taking more Wall-Clock time?
- If JMC does not support showing the list of
Hot Methods
is there any other tools which show this?