Class JfrProfileRecorder

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

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

    • startTime

      private Instant startTime
      Mappings:
      Namespace Name Mixin selector
      official a Lawq;a:Ljava/time/Instant;
      intermediary field_34422 Lnet/minecraft/class_6516;field_34422: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 Lawq;b:Ljava/time/Instant;
      intermediary field_34423 Lnet/minecraft/class_6516;field_34423: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 Lawq;c:Ljava/util/List;
      intermediary field_34424 Lnet/minecraft/class_6516;field_34424: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 Lawq;d:Ljava/util/List;
      intermediary field_34425 Lnet/minecraft/class_6516;field_34425:Ljava/util/List;
      named cpuLoadSamples Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;cpuLoadSamples:Ljava/util/List;
    • receivedPacketsToCounter

      private final Map<NetworkIoStatistics.Packet,JfrProfileRecorder.PacketCounter> receivedPacketsToCounter
      Mappings:
      Namespace Name Mixin selector
      official e Lawq;e:Ljava/util/Map;
      intermediary field_34426 Lnet/minecraft/class_6516;field_34426:Ljava/util/Map;
      named receivedPacketsToCounter Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;receivedPacketsToCounter:Ljava/util/Map;
    • sentPacketsToCounter

      Mappings:
      Namespace Name Mixin selector
      official f Lawq;f:Ljava/util/Map;
      intermediary field_34427 Lnet/minecraft/class_6516;field_34427:Ljava/util/Map;
      named sentPacketsToCounter Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;sentPacketsToCounter:Ljava/util/Map;
    • fileWriteSamples

      private final List<FileIoSample> fileWriteSamples
      Mappings:
      Namespace Name Mixin selector
      official g Lawq;g:Ljava/util/List;
      intermediary field_34428 Lnet/minecraft/class_6516;field_34428: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 Lawq;h:Ljava/util/List;
      intermediary field_34429 Lnet/minecraft/class_6516;field_34429: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 Lawq;i:I
      intermediary field_34430 Lnet/minecraft/class_6516;field_34430:I
      named gcCount Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;gcCount:I
    • gcDuration

      private Duration gcDuration
      Mappings:
      Namespace Name Mixin selector
      official j Lawq;j:Ljava/time/Duration;
      intermediary field_34431 Lnet/minecraft/class_6516;field_34431: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 Lawq;k:Ljava/util/List;
      intermediary field_34432 Lnet/minecraft/class_6516;field_34432: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 Lawq;l:Ljava/util/List;
      intermediary field_34433 Lnet/minecraft/class_6516;field_34433: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 Lawq;m:Ljava/util/List;
      intermediary field_34434 Lnet/minecraft/class_6516;field_34434: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 Lawq;n:Ljava/time/Duration;
      intermediary field_34435 Lnet/minecraft/class_6516;field_34435: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> Lawq;<init>(Ljava/util/stream/Stream;)V
      intermediary <init> Lnet/minecraft/class_6516;<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)
      Mappings:
      Namespace Name Mixin selector
      official a Lawq;a(Ljava/nio/file/Path;)Lawr;
      intermediary method_38001 Lnet/minecraft/class_6516;method_38001(Ljava/nio/file/Path;)Lnet/minecraft/class_6517;
      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 Lawq;a()Lawr;
      intermediary method_38000 Lnet/minecraft/class_6516;method_38000()Lnet/minecraft/class_6517;
      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 Lawq;a(Ljava/util/stream/Stream;)V
      intermediary method_38002 Lnet/minecraft/class_6516;method_38002(Ljava/util/stream/Stream;)V
      named handleEvents Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;handleEvents(Ljava/util/stream/Stream;)V
    • addPacket

      private void addPacket(RecordedEvent event, int bytes, Map<NetworkIoStatistics.Packet,JfrProfileRecorder.PacketCounter> packetsToCounter)
      Mappings:
      Namespace Name Mixin selector
      official a Lawq;a(Ljdk/jfr/consumer/RecordedEvent;ILjava/util/Map;)V
      intermediary method_39435 Lnet/minecraft/class_6516;method_39435(Ljdk/jfr/consumer/RecordedEvent;ILjava/util/Map;)V
      named addPacket Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;addPacket(Ljdk/jfr/consumer/RecordedEvent;ILjava/util/Map;)V
    • addFileIoSample

      private void addFileIoSample(RecordedEvent event, List<FileIoSample> samples, String bytesKey)
      Mappings:
      Namespace Name Mixin selector
      official a Lawq;a(Ljdk/jfr/consumer/RecordedEvent;Ljava/util/List;Ljava/lang/String;)V
      intermediary method_38004 Lnet/minecraft/class_6516;method_38004(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
    • createNetworkIoStatistics

      private static NetworkIoStatistics createNetworkIoStatistics(Duration duration, Map<NetworkIoStatistics.Packet,JfrProfileRecorder.PacketCounter> packetsToCounter)
      Mappings:
      Namespace Name Mixin selector
      official a Lawq;a(Ljava/time/Duration;Ljava/util/Map;)Lawz;
      intermediary method_39433 Lnet/minecraft/class_6516;method_39433(Ljava/time/Duration;Ljava/util/Map;)Lnet/minecraft/class_6767;
      named createNetworkIoStatistics Lnet/minecraft/util/profiling/jfr/JfrProfileRecorder;createNetworkIoStatistics(Ljava/time/Duration;Ljava/util/Map;)Lnet/minecraft/util/profiling/jfr/sample/NetworkIoStatistics;