Record Class FileIOStat.Summary
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.FileIOStat.Summary
- Enclosing class:
- FileIOStat
-
Field Summary
Modifier and TypeFieldDescriptionprivate final double
The field for thebytesPerSecond
record component.private final long
The field for thecounts
record component.private final double
The field for thecountsPerSecond
record component.private final Duration
The field for thetimeSpentInIO
record component.The field for thetopTenContributorsByTotalBytes
record component.private final long
The field for thetotalBytes
record component. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of thebytesPerSecond
record component.long
counts()
Returns the value of thecounts
record component.double
Returns the value of thecountsPerSecond
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thetimeSpentInIO
record component.Returns the value of thetopTenContributorsByTotalBytes
record component.final String
toString()
Returns a string representation of this record class.long
Returns the value of thetotalBytes
record component.
-
Field Details
-
totalBytes
private final long totalBytesThe field for thetotalBytes
record component. -
bytesPerSecond
private final double bytesPerSecondThe field for thebytesPerSecond
record component. -
counts
private final long countsThe field for thecounts
record component. -
countsPerSecond
private final double countsPerSecondThe field for thecountsPerSecond
record component. -
timeSpentInIO
The field for thetimeSpentInIO
record component. -
topTenContributorsByTotalBytes
The field for thetopTenContributorsByTotalBytes
record component.
-
-
Constructor Details
-
Summary
public Summary(long totalBytes, double bytesPerSecond, long counts, double countsPerSecond, Duration timeSpentInIO, List<com.mojang.datafixers.util.Pair<String, Long>> topTenContributorsByTotalBytes) Creates an instance of aSummary
record class.- Parameters:
totalBytes
- the value for thetotalBytes
record componentbytesPerSecond
- the value for thebytesPerSecond
record componentcounts
- the value for thecounts
record componentcountsPerSecond
- the value for thecountsPerSecond
record componenttimeSpentInIO
- the value for thetimeSpentInIO
record componenttopTenContributorsByTotalBytes
- the value for thetopTenContributorsByTotalBytes
record component
-
-
Method Details
-
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 '=='. -
totalBytes
public long totalBytes()Returns the value of thetotalBytes
record component.- Returns:
- the value of the
totalBytes
record component
-
bytesPerSecond
public double bytesPerSecond()Returns the value of thebytesPerSecond
record component.- Returns:
- the value of the
bytesPerSecond
record component
-
counts
public long counts()Returns the value of thecounts
record component.- Returns:
- the value of the
counts
record component
-
countsPerSecond
public double countsPerSecond()Returns the value of thecountsPerSecond
record component.- Returns:
- the value of the
countsPerSecond
record component
-
timeSpentInIO
Returns the value of thetimeSpentInIO
record component.- Returns:
- the value of the
timeSpentInIO
record component
-
topTenContributorsByTotalBytes
Returns the value of thetopTenContributorsByTotalBytes
record component.- Returns:
- the value of the
topTenContributorsByTotalBytes
record component
-