0

I am profiling one app via Your kit profiler but unable to interpret following 2 things in Threads tab of Your Kit.

CPU Sampling

  • CPU usage on sample time shows 191ms, just want to clarify Thread state was determined to be Sleeping, is their any means by which it can be found what's the exact distribution of sampling basis of which thread state was represented as SLEEPING.

    • At some places fire symbol on sampling are displayed and at some other's they don't. At high level I observed that if CPU usage on sample is less than 30 ms, this symbol doesn't appear other than that it is displayed. Also want to know if their is any setting by which it can modify this criteria.

I tried going through documentation but was not able to find on this.

tarunkumar
  • 861
  • 2
  • 15
  • 30

1 Answers1

1

YourKit profiler agent samples thread states relatively rare (about 1 time per second). If some thread sleeps most of the time, there is a big probability that profiler finds this thread in "Sleeping" state when samples.

But if thread consumed some CPU (during short wake-up), profiler will show this usage. It's not known what thread exactly did, but it is definitely known that thread did something. It is shown as a thin green stripe at the left side of state.