Package net.minecraft.util.profiling.jfr
Record Class JfrProfile
java.lang.Object
java.lang.Record
net.minecraft.util.profiling.jfr.JfrProfile
- Record Components:
startTime-endTime-duration-worldGenDuration-serverTickTimeSamples-cpuLoadSamples-gcHeapSummaryStatistics-threadAllocationMap-packetReadStatistics-packetSentStatistics-fileWriteStatistics-fileReadStatistics-chunkGenerationSamples-
public record JfrProfile(Instant startTime, Instant endTime, Duration duration, @Nullable Duration worldGenDuration, List<ServerTickTimeSample> serverTickTimeSamples, List<CpuLoadSample> cpuLoadSamples, GcHeapSummarySample.Statistics gcHeapSummaryStatistics, ThreadAllocationStatisticsSample.AllocationMap threadAllocationMap, NetworkIoStatistics packetReadStatistics, NetworkIoStatistics packetSentStatistics, FileIoSample.Statistics fileWriteStatistics, FileIoSample.Statistics fileReadStatistics, List<ChunkGenerationSample> chunkGenerationSamples)
extends Record
- Mappings:
Namespace Name official bbbintermediary net/minecraft/class_6517named net/minecraft/util/profiling/jfr/JfrProfileofficial aintermediary comp_3named startTimeofficial bintermediary comp_4named endTimeofficial cintermediary comp_5named durationofficial dintermediary comp_6named worldGenDurationofficial eintermediary comp_7named serverTickTimeSamplesofficial fintermediary comp_8named cpuLoadSamplesofficial gintermediary comp_9named gcHeapSummaryStatisticsofficial hintermediary comp_10named threadAllocationMapofficial iintermediary comp_11named packetReadStatisticsofficial jintermediary comp_12named packetSentStatisticsofficial kintermediary comp_13named fileWriteStatisticsofficial lintermediary comp_14named fileReadStatisticsofficial mintermediary comp_15named chunkGenerationSamples
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ChunkGenerationSample>The field for thechunkGenerationSamplesrecord component.private final List<CpuLoadSample>The field for thecpuLoadSamplesrecord component.private final DurationThe field for thedurationrecord component.private final InstantThe field for theendTimerecord component.private final FileIoSample.StatisticsThe field for thefileReadStatisticsrecord component.private final FileIoSample.StatisticsThe field for thefileWriteStatisticsrecord component.private final GcHeapSummarySample.StatisticsThe field for thegcHeapSummaryStatisticsrecord component.private final NetworkIoStatisticsThe field for thepacketReadStatisticsrecord component.private final NetworkIoStatisticsThe field for thepacketSentStatisticsrecord component.private final List<ServerTickTimeSample>The field for theserverTickTimeSamplesrecord component.private final InstantThe field for thestartTimerecord component.private final ThreadAllocationStatisticsSample.AllocationMapThe field for thethreadAllocationMaprecord component.The field for theworldGenDurationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionJfrProfile(Instant instant, Instant instant2, Duration duration, @Nullable Duration duration2, List<ServerTickTimeSample> list, List<CpuLoadSample> list2, GcHeapSummarySample.Statistics statistics, ThreadAllocationStatisticsSample.AllocationMap allocationMap, NetworkIoStatistics networkIoStatistics, NetworkIoStatistics networkIoStatistics2, FileIoSample.Statistics statistics2, FileIoSample.Statistics statistics3, List<ChunkGenerationSample> list3) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechunkGenerationSamplesrecord component.Returns the value of thecpuLoadSamplesrecord component.duration()Returns the value of thedurationrecord component.endTime()Returns the value of theendTimerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileReadStatisticsrecord component.Returns the value of thefileWriteStatisticsrecord component.Returns the value of thegcHeapSummaryStatisticsrecord component.List<com.mojang.datafixers.util.Pair<ChunkStatus,LongRunningSampleStatistics<ChunkGenerationSample>>> final inthashCode()Returns a hash code value for this object.Returns the value of thepacketReadStatisticsrecord component.Returns the value of thepacketSentStatisticsrecord component.Returns the value of theserverTickTimeSamplesrecord component.Returns the value of thestartTimerecord component.Returns the value of thethreadAllocationMaprecord component.toJson()final StringtoString()Returns a string representation of this record class.Returns the value of theworldGenDurationrecord component.
-
Field Details
-
startTime
The field for thestartTimerecord component. -
endTime
The field for theendTimerecord component. -
duration
The field for thedurationrecord component. -
worldGenDuration
The field for theworldGenDurationrecord component. -
serverTickTimeSamples
The field for theserverTickTimeSamplesrecord component. -
cpuLoadSamples
The field for thecpuLoadSamplesrecord component. -
gcHeapSummaryStatistics
The field for thegcHeapSummaryStatisticsrecord component. -
threadAllocationMap
The field for thethreadAllocationMaprecord component. -
packetReadStatistics
The field for thepacketReadStatisticsrecord component. -
packetSentStatistics
The field for thepacketSentStatisticsrecord component. -
fileWriteStatistics
The field for thefileWriteStatisticsrecord component. -
fileReadStatistics
The field for thefileReadStatisticsrecord component. -
chunkGenerationSamples
The field for thechunkGenerationSamplesrecord component.
-
-
Constructor Details
-
JfrProfile
public JfrProfile(Instant instant, Instant instant2, Duration duration, @Nullable @Nullable Duration duration2, List<ServerTickTimeSample> list, List<CpuLoadSample> list2, GcHeapSummarySample.Statistics statistics, ThreadAllocationStatisticsSample.AllocationMap allocationMap, NetworkIoStatistics networkIoStatistics, NetworkIoStatistics networkIoStatistics2, FileIoSample.Statistics statistics2, FileIoSample.Statistics statistics3, List<ChunkGenerationSample> list3)
-
-
Method Details
-
getChunkGenerationSampleStatistics
public List<com.mojang.datafixers.util.Pair<ChunkStatus,LongRunningSampleStatistics<ChunkGenerationSample>>> getChunkGenerationSampleStatistics()- Mappings:
Namespace Name Mixin selector official aLbbb;a()Ljava/util/List;intermediary method_38006Lnet/minecraft/class_6517;method_38006()Ljava/util/List;named getChunkGenerationSampleStatisticsLnet/minecraft/util/profiling/jfr/JfrProfile;getChunkGenerationSampleStatistics()Ljava/util/List;
-
toJson
- Mappings:
Namespace Name Mixin selector official bLbbb;b()Ljava/lang/String;intermediary method_38009Lnet/minecraft/class_6517;method_38009()Ljava/lang/String;named toJsonLnet/minecraft/util/profiling/jfr/JfrProfile;toJson()Ljava/lang/String;
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
startTime
Returns the value of thestartTimerecord component.- Returns:
- the value of the
startTimerecord component
-
endTime
Returns the value of theendTimerecord component.- Returns:
- the value of the
endTimerecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
worldGenDuration
Returns the value of theworldGenDurationrecord component.- Returns:
- the value of the
worldGenDurationrecord component
-
serverTickTimeSamples
Returns the value of theserverTickTimeSamplesrecord component.- Returns:
- the value of the
serverTickTimeSamplesrecord component
-
cpuLoadSamples
Returns the value of thecpuLoadSamplesrecord component.- Returns:
- the value of the
cpuLoadSamplesrecord component
-
gcHeapSummaryStatistics
Returns the value of thegcHeapSummaryStatisticsrecord component.- Returns:
- the value of the
gcHeapSummaryStatisticsrecord component
-
threadAllocationMap
Returns the value of thethreadAllocationMaprecord component.- Returns:
- the value of the
threadAllocationMaprecord component
-
packetReadStatistics
Returns the value of thepacketReadStatisticsrecord component.- Returns:
- the value of the
packetReadStatisticsrecord component
-
packetSentStatistics
Returns the value of thepacketSentStatisticsrecord component.- Returns:
- the value of the
packetSentStatisticsrecord component
-
fileWriteStatistics
Returns the value of thefileWriteStatisticsrecord component.- Returns:
- the value of the
fileWriteStatisticsrecord component
-
fileReadStatistics
Returns the value of thefileReadStatisticsrecord component.- Returns:
- the value of the
fileReadStatisticsrecord component
-
chunkGenerationSamples
Returns the value of thechunkGenerationSamplesrecord component.- Returns:
- the value of the
chunkGenerationSamplesrecord component
-