Record Class ThreadAllocationStat
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.ThreadAllocationStat
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionThreadAllocationStat
(Instant timestamp, String threadName, long totalBytes) Creates an instance of aThreadAllocationStat
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.static ThreadAllocationStat
from
(RecordedEvent p_185804_) final int
hashCode()
Returns a hash code value for this object.static ThreadAllocationStat.Summary
summary
(List<ThreadAllocationStat> p_185798_) Returns the value of thethreadName
record component.Returns the value of thetimestamp
record component.final String
toString()
Returns a string representation of this record class.long
Returns the value of thetotalBytes
record component.
-
Field Details
-
timestamp
The field for thetimestamp
record component. -
threadName
The field for thethreadName
record component. -
totalBytes
private final long totalBytesThe field for thetotalBytes
record component. -
UNKNOWN_THREAD
- See Also:
-
-
Constructor Details
-
ThreadAllocationStat
Creates an instance of aThreadAllocationStat
record class.- Parameters:
timestamp
- the value for thetimestamp
record componentthreadName
- the value for thethreadName
record componenttotalBytes
- the value for thetotalBytes
record component
-
-
Method Details
-
from
-
summary
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
timestamp
Returns the value of thetimestamp
record component.- Returns:
- the value of the
timestamp
record component
-
threadName
Returns the value of thethreadName
record component.- Returns:
- the value of the
threadName
record component
-
totalBytes
public long totalBytes()Returns the value of thetotalBytes
record component.- Returns:
- the value of the
totalBytes
record component
-