title: Java profiling: detect which piece of code causes high CPU load
body: <p>I profiled my code with both JProfiler and YourKit. However, I haven't been able to figure out how to detect which piece of code is responsible for high CPU load.</p>
  
  <p>It's trivial to detect hot spots if the response time is bad. In my case though response time is not a problem. It's just that the CPU load is really high (surprisingly high) during the short time this particular request is processed.</p>
  
  <p>How can I pin-point which class(es)/method(s) are causing this? I guess what I'm looking for is some kind of list which tells me how many CPU cycles the processing of a method required - or so.</p>