Record Class ThreadAllocationStat
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.ThreadAllocationStat
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionThreadAllocationStat(Instant timestamp, String threadName, long totalBytes) Creates an instance of aThreadAllocationStatrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static ThreadAllocationStatfrom(RecordedEvent p_185804_) final inthashCode()Returns a hash code value for this object.static ThreadAllocationStat.Summarysummary(List<ThreadAllocationStat> p_185798_) Returns the value of thethreadNamerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalBytesrecord component.
- 
Field Details- 
timestampThe field for thetimestamprecord component.
- 
threadNameThe field for thethreadNamerecord component.
- 
totalBytesprivate final long totalBytesThe field for thetotalBytesrecord component.
- 
UNKNOWN_THREAD- See Also:
 
 
- 
- 
Constructor Details- 
ThreadAllocationStatCreates an instance of aThreadAllocationStatrecord class.- Parameters:
- timestamp- the value for the- timestamprecord component
- threadName- the value for the- threadNamerecord component
- totalBytes- the value for the- totalBytesrecord component
 
 
- 
- 
Method Details- 
from
- 
summary
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
timestampReturns the value of thetimestamprecord component.- Returns:
- the value of the timestamprecord component
 
- 
threadNameReturns the value of thethreadNamerecord component.- Returns:
- the value of the threadNamerecord component
 
- 
totalBytespublic long totalBytes()Returns the value of thetotalBytesrecord component.- Returns:
- the value of the totalBytesrecord component
 
 
-