The CPU is calculated over the clocks counter over GetCurrentThreadCPUTimer.
http://java.sun.com/j2se/1.5.0/docs/guide/jvmpi/jvmpi.html#GetCurrentThre...
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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...