What is the difference between using -agentlib:hprof=cpu=times vs -agentlib:hprof=cpu=sample when running a java class? I know that cpu=sample causes the jvm to sample the call stack at regular intervals, but what does cpu=times do?
+3
A:
hprof=cpu=times
causes the profiler to count the number of times each method was called and measure the time spent in each method.
Read about it here (Ctrl-F cpu-times).
Bill the Lizard
2008-12-17 18:15:55