Record Class FileIOStat.Summary
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.stats.FileIOStat.Summary
- Enclosing class:
FileIOStat
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for thebytesPerSecondrecord component.private final longThe field for thecountsrecord component.private final doubleThe field for thecountsPerSecondrecord component.private final DurationThe field for thetimeSpentInIOrecord component.The field for thetopTenContributorsByTotalBytesrecord component.private final longThe field for thetotalBytesrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thebytesPerSecondrecord component.longcounts()Returns the value of thecountsrecord component.doubleReturns the value of thecountsPerSecondrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetimeSpentInIOrecord component.Returns the value of thetopTenContributorsByTotalBytesrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalBytesrecord component.
-
Field Details
-
totalBytes
private final long totalBytesThe field for thetotalBytesrecord component. -
bytesPerSecond
private final double bytesPerSecondThe field for thebytesPerSecondrecord component. -
counts
private final long countsThe field for thecountsrecord component. -
countsPerSecond
private final double countsPerSecondThe field for thecountsPerSecondrecord component. -
timeSpentInIO
The field for thetimeSpentInIOrecord component. -
topTenContributorsByTotalBytes
The field for thetopTenContributorsByTotalBytesrecord 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 aSummaryrecord class.- Parameters:
totalBytes- the value for thetotalBytesrecord componentbytesPerSecond- the value for thebytesPerSecondrecord componentcounts- the value for thecountsrecord componentcountsPerSecond- the value for thecountsPerSecondrecord componenttimeSpentInIO- the value for thetimeSpentInIOrecord componenttopTenContributorsByTotalBytes- the value for thetopTenContributorsByTotalBytesrecord 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 thetotalBytesrecord component.- Returns:
- the value of the
totalBytesrecord component
-
bytesPerSecond
public double bytesPerSecond()Returns the value of thebytesPerSecondrecord component.- Returns:
- the value of the
bytesPerSecondrecord component
-
counts
public long counts()Returns the value of thecountsrecord component.- Returns:
- the value of the
countsrecord component
-
countsPerSecond
public double countsPerSecond()Returns the value of thecountsPerSecondrecord component.- Returns:
- the value of the
countsPerSecondrecord component
-
timeSpentInIO
Returns the value of thetimeSpentInIOrecord component.- Returns:
- the value of the
timeSpentInIOrecord component
-
topTenContributorsByTotalBytes
Returns the value of thetopTenContributorsByTotalBytesrecord component.- Returns:
- the value of the
topTenContributorsByTotalBytesrecord component
-