Interface ThreadInfo
public interface ThreadInfo
Describes a thread. A list of alive and dead threads can be requested from the connection.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the thread group name of this thread.Returns the name of the parent thread.long
Returns the CPU time for this thread.long
Returns the time when this thread was ended.long
Returns the id of this thread.Returns the name of this thread.long
Returns the time when this thread was started.
-
Method Details
-
getThreadId
long getThreadId()Returns the id of this thread.- Returns:
- the id
-
getThreadName
String getThreadName()Returns the name of this thread. The profiling agent keeps track of thread name changes. If you re-request the list of threads from the connection, the current name will be returned.- Returns:
- the name
-
getGroupName
String getGroupName()Returns the thread group name of this thread.- Returns:
- the group name
-
getParentName
String getParentName()Returns the name of the parent thread.- Returns:
- the parent name
-
getThreadStartTime
long getThreadStartTime()Returns the time when this thread was started. The time is measured in microseconds beginning with the start of the VM.- Returns:
- the start time
-
getThreadEndTime
long getThreadEndTime()Returns the time when this thread was ended. If the thread is still alive, this method returns 0. The time is measured in microseconds beginning with the start of the VM.- Returns:
- the end time
-
getThreadCPUTime
long getThreadCPUTime()Returns the CPU time for this thread. "CPU time" is the time that has been allocated to this thread by the operating system so far. CPU time measurements are provided by the operating system. They are relatively coarse-grained and can be zero.- Returns:
- the CPU time
-