Class JfrProfileRecorder

java.lang.Object
net.minecraft.util.profiling.jfr.JfrProfileRecorder

public class JfrProfileRecorder extends Object
Mappings:
Namespace Name
official aqn
intermediary net/minecraft/class_6428
named net/minecraft/util/profiling/jfr/JfrProfileRecorder
  • Field Details

    • startTime

      private Instant startTime
      Mappings:
      Namespace Name Mixin selector
      official a Laqn;a:Ljava/time/Instant;
      intermediary field_34076 Lnet/minecraft/class_6428;field_34076:Ljava/time/Instant;
      named startTime Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;startTime:Ljava/time/Instant;
    • endTime

      private Instant endTime
      Mappings:
      Namespace Name Mixin selector
      official b Laqn;b:Ljava/time/Instant;
      intermediary field_34077 Lnet/minecraft/class_6428;field_34077:Ljava/time/Instant;
      named endTime Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;endTime:Ljava/time/Instant;
    • chunkGenerationSamples

      private final List<ChunkGenerationSample> chunkGenerationSamples
      Mappings:
      Namespace Name Mixin selector
      official c Laqn;c:Ljava/util/List;
      intermediary field_34078 Lnet/minecraft/class_6428;field_34078:Ljava/util/List;
      named chunkGenerationSamples Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;chunkGenerationSamples:Ljava/util/List;
    • cpuLoadSamples

      private final List<CpuLoadSample> cpuLoadSamples
      Mappings:
      Namespace Name Mixin selector
      official d Laqn;d:Ljava/util/List;
      intermediary field_34079 Lnet/minecraft/class_6428;field_34079:Ljava/util/List;
      named cpuLoadSamples Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;cpuLoadSamples:Ljava/util/List;
    • packetReadSamples

      private final List<PacketSample> packetReadSamples
      Mappings:
      Namespace Name Mixin selector
      official e Laqn;e:Ljava/util/List;
      intermediary field_34080 Lnet/minecraft/class_6428;field_34080:Ljava/util/List;
      named packetReadSamples Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;packetReadSamples:Ljava/util/List;
    • packetSentSamples

      private final List<PacketSample> packetSentSamples
      Mappings:
      Namespace Name Mixin selector
      official f Laqn;f:Ljava/util/List;
      intermediary field_34081 Lnet/minecraft/class_6428;field_34081:Ljava/util/List;
      named packetSentSamples Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;packetSentSamples:Ljava/util/List;
    • fileWriteSamples

      private final List<FileIoSample> fileWriteSamples
      Mappings:
      Namespace Name Mixin selector
      official g Laqn;g:Ljava/util/List;
      intermediary field_34082 Lnet/minecraft/class_6428;field_34082:Ljava/util/List;
      named fileWriteSamples Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;fileWriteSamples:Ljava/util/List;
    • fileReadSamples

      private final List<FileIoSample> fileReadSamples
      Mappings:
      Namespace Name Mixin selector
      official h Laqn;h:Ljava/util/List;
      intermediary field_34083 Lnet/minecraft/class_6428;field_34083:Ljava/util/List;
      named fileReadSamples Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;fileReadSamples:Ljava/util/List;
    • gcCount

      private int gcCount
      Mappings:
      Namespace Name Mixin selector
      official i Laqn;i:I
      intermediary field_34084 Lnet/minecraft/class_6428;field_34084:I
      named gcCount Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;gcCount:I
    • gcDuration

      private Duration gcDuration
      Mappings:
      Namespace Name Mixin selector
      official j Laqn;j:Ljava/time/Duration;
      intermediary field_34085 Lnet/minecraft/class_6428;field_34085:Ljava/time/Duration;
      named gcDuration Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;gcDuration:Ljava/time/Duration;
    • gcHeapSummarySamples

      private final List<GcHeapSummarySample> gcHeapSummarySamples
      Mappings:
      Namespace Name Mixin selector
      official k Laqn;k:Ljava/util/List;
      intermediary field_34086 Lnet/minecraft/class_6428;field_34086:Ljava/util/List;
      named gcHeapSummarySamples Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;gcHeapSummarySamples:Ljava/util/List;
    • threadAllocationStatisticsSamples

      private final List<ThreadAllocationStatisticsSample> threadAllocationStatisticsSamples
      Mappings:
      Namespace Name Mixin selector
      official l Laqn;l:Ljava/util/List;
      intermediary field_34087 Lnet/minecraft/class_6428;field_34087:Ljava/util/List;
      named threadAllocationStatisticsSamples Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;threadAllocationStatisticsSamples:Ljava/util/List;
    • serverTickTimeSamples

      private final List<ServerTickTimeSample> serverTickTimeSamples
      Mappings:
      Namespace Name Mixin selector
      official m Laqn;m:Ljava/util/List;
      intermediary field_34088 Lnet/minecraft/class_6428;field_34088:Ljava/util/List;
      named serverTickTimeSamples Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;serverTickTimeSamples:Ljava/util/List;
    • worldGenDuration

      @Nullable private @Nullable Duration worldGenDuration
      Mappings:
      Namespace Name Mixin selector
      official n Laqn;n:Ljava/time/Duration;
      intermediary field_34089 Lnet/minecraft/class_6428;field_34089:Ljava/time/Duration;
      named worldGenDuration Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;worldGenDuration:Ljava/time/Duration;
  • Constructor Details

    • JfrProfileRecorder

      private JfrProfileRecorder(Stream<RecordedEvent> events)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laqn;<init>(Ljava/util/stream/Stream;)V
      intermediary <init> Lnet/minecraft/class_6428;<init>(Ljava/util/stream/Stream;)V
      named <init> Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;<init>(Ljava/util/stream/Stream;)V
  • Method Details

    • readProfile

      public static JfrProfile readProfile(Path path) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Laqn;a(Ljava/nio/file/Path;)Laqo;
      intermediary method_37505 Lnet/minecraft/class_6428;method_37505(Ljava/nio/file/Path;)Lnet/minecraft/class_6429;
      named readProfile Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;readProfile(Ljava/nio/file/Path;)Lnet/minecraft/util/profiling/jfr/JfrProfile;
    • createProfile

      private JfrProfile createProfile()
      Mappings:
      Namespace Name Mixin selector
      official a Laqn;a()Laqo;
      intermediary method_37504 Lnet/minecraft/class_6428;method_37504()Lnet/minecraft/class_6429;
      named createProfile Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;createProfile()Lnet/minecraft/util/profiling/jfr/JfrProfile;
    • handleEvents

      private void handleEvents(Stream<RecordedEvent> events)
      Mappings:
      Namespace Name Mixin selector
      official a Laqn;a(Ljava/util/stream/Stream;)V
      intermediary method_37506 Lnet/minecraft/class_6428;method_37506(Ljava/util/stream/Stream;)V
      named handleEvents Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;handleEvents(Ljava/util/stream/Stream;)V
    • addFileIoSample

      private void addFileIoSample(RecordedEvent event, List<FileIoSample> samples, String bytesKey)
      Mappings:
      Namespace Name Mixin selector
      official a Laqn;a(Ljdk/jfr/consumer/RecordedEvent;Ljava/util/List;Ljava/lang/String;)V
      intermediary method_37508 Lnet/minecraft/class_6428;method_37508(Ljdk/jfr/consumer/RecordedEvent;Ljava/util/List;Ljava/lang/String;)V
      named addFileIoSample Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;addFileIoSample(Ljdk/jfr/consumer/RecordedEvent;Ljava/util/List;Ljava/lang/String;)V