[jboss-dev-forums] [Design of JBoss Profiler] - Re: How CPU utilization is worked out in the analysis?
clebert.suconic@jboss.com
do-not-reply at jboss.com
Mon Mar 10 21:06:22 EDT 2008
The CPU is calculated over the clocks counter over GetCurrentThreadCPUTimer.
http://java.sun.com/j2se/1.5.0/docs/guide/jvmpi/jvmpi.html#GetCurrentThreadCpuTime
The logger will write the Timer when the method is in, and out.. and during the calculation (or processing) this is stacked and calculated.
Say... When you stack calls, Method A will call Method B, C and D.
Say.. .if method A took 100 Milliseconds on the CPU Timer, than B. C and D took 50, 40, and 10 Milliseconds, each one will be 50%, 40% and 10%. (Simple calculation)
Notice that sometimes Method A itself will consume CPU, so you won't have B+C+D=100% all the time.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4135495#4135495
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4135495
More information about the jboss-dev-forums
mailing list