Class MarkRecorderRef
java.lang.Object
io.perfmark.impl.MarkRecorderRef
Represents a MarkRecorder ID and the Thread that created it.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AtomicLongprivate final longprivate final ThreadInfo -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMarkRecorderRef(long markRecorderId, ThreadInfo threadInfo) -
Method Summary
Modifier and TypeMethodDescriptionstatic longbooleaninthashCode()longstatic MarkRecorderRefnewRef()Creates a new MarkRecorderRef that can update the thread name and ID from the current thread.static MarkRecorderRefnewRef(ThreadInfo threadInfo) Creates a new MarkRecorderRef that can update the thread name and ID from the given Thread Reference.toString()
-
Field Details
-
markRecorderAlloc
-
markRecorderId
private final long markRecorderId -
threadInfo
-
-
Constructor Details
-
MarkRecorderRef
-
-
Method Details
-
allocateMarkRecorderId
public static long allocateMarkRecorderId() -
newRef
Creates a new MarkRecorderRef that can update the thread name and ID from the given Thread Reference. -
newRef
Creates a new MarkRecorderRef that can update the thread name and ID from the current thread. -
markRecorderId
public long markRecorderId() -
threadInfo
-
hashCode
-
equals
-
toString
-