Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I've been searching all over for a consistent and clear explanation of what 'self time' actually refers to in the VisualVM context and how does it differ to 'self time (cpu)'. Also does 'self time [%]' refer to self time or self time cpu.

There doesn't appear to be much documentation on this or at least I haven't found it. So any thoughts/input will be appreciated.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
154 views
Welcome To Ask or Share your Answers For Others

1 Answer

  • Self Time is a wall-clock time spent in the method itself (includes time waiting/sleeping).
  • Self Time (CPU) is a time processor time, so it does NOT include time spent waiting, sleeping, etc.

  • Both columns do NOT include time spent in methods invoked from that method.
  • Both Self Time and Self Time (CPU) in the sampler are approximation of actual data.
  • Self Time [%] refers to one of the two selected Self Time [(CPU)] columns.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...