Package io.perfmark.impl
Class ThreadRefInfo
java.lang.Object
io.perfmark.impl.ThreadInfo
io.perfmark.impl.ThreadRefInfo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()The most recent ID of the thread.getName()The most recent name of the thread.booleanbooleanReturnstrueif the thread has been GC'd or is terminated.private longmaybeUpdateThreadId(long threadId, long localThreadId) private StringmaybeUpdateThreadName(String tName, String localThreadName)
-
Field Details
-
threadRef
-
threadName
-
threadId
private volatile long threadId
-
-
Constructor Details
-
ThreadRefInfo
ThreadRefInfo(ThreadRef threadRef)
-
-
Method Details
-
getName
Description copied from class:ThreadInfoThe most recent name of the thread. Non-null.- Specified by:
getNamein classThreadInfo
-
getId
public long getId()Description copied from class:ThreadInfoThe most recent ID of the thread.- Specified by:
getIdin classThreadInfo
-
maybeUpdateThreadName
-
maybeUpdateThreadId
private long maybeUpdateThreadId(long threadId, long localThreadId) -
isTerminated
public boolean isTerminated()Description copied from class:ThreadInfoReturnstrueif the thread has been GC'd or is terminated.- Specified by:
isTerminatedin classThreadInfo
-
isCurrentThread
public boolean isCurrentThread()- Specified by:
isCurrentThreadin classThreadInfo
-