public interface ThreadsCpuMBean extends OptionalCounter
Modifier and Type | Method and Description |
---|---|
long |
getThreadElapsedCpuTime()
Gets the elapsed CPU time for the execution thread.
|
long |
getThreadElapsedCpuTime(long tid)
Gets the elapsed CPU time for the given thread.
|
long |
getThreadElapsedUserTime()
Gets the elapsed CPU time for the execution thread in a user mode.
|
long |
getThreadElapsedUserTime(long tid)
Gets the elapsed CPU time for the given thread in a user mode.
|
void |
setCurrentThread(long tid)
Sets the execution thread.
|
void |
updateThreadElapsedCpuTime(long tid,
long value)
Updates the elapsed CPU time spent the given thread by adding the given value.
|
void |
updateThreadElapsedUserTime(long tid,
long value)
Updates the elapsed CPU time spent the given thread in a user mode by adding the given value.
|
dump, toString, update
register
long getThreadElapsedCpuTime()
long getThreadElapsedCpuTime(long tid)
tid
- The given thread idvoid updateThreadElapsedCpuTime(long tid, long value)
tid
- The given thread idvalue
- The given valuelong getThreadElapsedUserTime()
long getThreadElapsedUserTime(long tid)
tid
- The given thread idvoid updateThreadElapsedUserTime(long tid, long value)
tid
- The given thread idvalue
- The given valuevoid setCurrentThread(long tid)
tid
- The thread id