1

当我使用选项运行 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归档是什么意思?

谢谢。

4

1 回答 1

1

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%
于 2016-01-28T08:01:15.263 回答