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 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 if is this expected ? One reason I can think of is JMC profiling might be measuring the CPU ticks and during the external HTTP Calls CPU is not used. So the hot method list is different in both the cases.
Profiling a java application making a lot of external http calls
java;profiling