当我使用选项运行Java时:
-agentlib:hprof=cpu=times
hprof的结果如下:
CPU TIME (ms) BEGIN (total = 3093024) Thu Jan 28 14:57:36 2016
rank self accum count trace method
1 35.81% 35.81% 6 328434 java.util.concurrent.locks.LockSupport.park
2 28.04% 63.85% 68 330338 java.util.concurrent.locks.LockSupport.park
3 11.04% 74.88% 59675 326270 sun.nio.ch.EPollArrayWrapper.poll
我想知道
accum
提交的含义是什么?谢谢。
最佳答案
如hprof CPU TIMES中所述:
accum: includes the time for the entries that appear above this one in the list. The last entry will have an accum of 100%