Class JfrProfiler

java.lang.Object
net.minecraft.util.profiling.jfr.JfrProfiler
All Implemented Interfaces:
FlightProfiler

public class JfrProfiler extends Object implements FlightProfiler
Mappings:
Namespace Name
named net/minecraft/util/profiling/jfr/JfrProfiler
intermediary net/minecraft/class_6505
official bna
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/util/profiling/jfr/JfrProfiler;LOGGER:Lorg/slf4j/Logger;
      intermediary field_34408 Lnet/minecraft/class_6505;field_34408:Lorg/slf4j/Logger;
      official g Lbna;g:Lorg/slf4j/Logger;
    • MINECRAFT

      public static final String MINECRAFT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MINECRAFT Lnet/minecraft/util/profiling/jfr/JfrProfiler;MINECRAFT:Ljava/lang/String;
      intermediary field_34403 Lnet/minecraft/class_6505;field_34403:Ljava/lang/String;
      official a Lbna;a:Ljava/lang/String;
    • WORLD_GENERATION

      public static final String WORLD_GENERATION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named WORLD_GENERATION Lnet/minecraft/util/profiling/jfr/JfrProfiler;WORLD_GENERATION:Ljava/lang/String;
      intermediary field_34404 Lnet/minecraft/class_6505;field_34404:Ljava/lang/String;
      official b Lbna;b:Ljava/lang/String;
    • TICKING

      public static final String TICKING
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TICKING Lnet/minecraft/util/profiling/jfr/JfrProfiler;TICKING:Ljava/lang/String;
      intermediary field_34405 Lnet/minecraft/class_6505;field_34405:Ljava/lang/String;
      official c Lbna;c:Ljava/lang/String;
    • NETWORK

      public static final String NETWORK
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named NETWORK Lnet/minecraft/util/profiling/jfr/JfrProfiler;NETWORK:Ljava/lang/String;
      intermediary field_34406 Lnet/minecraft/class_6505;field_34406:Ljava/lang/String;
      official d Lbna;d:Ljava/lang/String;
    • STORAGE

      public static final String STORAGE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named STORAGE Lnet/minecraft/util/profiling/jfr/JfrProfiler;STORAGE:Ljava/lang/String;
      intermediary field_49058 Lnet/minecraft/class_6505;field_49058:Ljava/lang/String;
      official e Lbna;e:Ljava/lang/String;
    • EVENTS

      private static final List<Class<? extends Event>> EVENTS
      Mappings:
      Namespace Name Mixin selector
      named EVENTS Lnet/minecraft/util/profiling/jfr/JfrProfiler;EVENTS:Ljava/util/List;
      intermediary field_34407 Lnet/minecraft/class_6505;field_34407:Ljava/util/List;
      official h Lbna;h:Ljava/util/List;
    • CONFIG_PATH

      private static final String CONFIG_PATH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CONFIG_PATH Lnet/minecraft/util/profiling/jfr/JfrProfiler;CONFIG_PATH:Ljava/lang/String;
      intermediary field_34409 Lnet/minecraft/class_6505;field_34409:Ljava/lang/String;
      official i Lbna;i:Ljava/lang/String;
    • DATE_TIME_FORMAT

      private static final DateTimeFormatter DATE_TIME_FORMAT
      Mappings:
      Namespace Name Mixin selector
      named DATE_TIME_FORMAT Lnet/minecraft/util/profiling/jfr/JfrProfiler;DATE_TIME_FORMAT:Ljava/time/format/DateTimeFormatter;
      intermediary field_34410 Lnet/minecraft/class_6505;field_34410:Ljava/time/format/DateTimeFormatter;
      official j Lbna;j:Ljava/time/format/DateTimeFormatter;
    • INSTANCE

      private static final JfrProfiler INSTANCE
      Mappings:
      Namespace Name Mixin selector
      named INSTANCE Lnet/minecraft/util/profiling/jfr/JfrProfiler;INSTANCE:Lnet/minecraft/util/profiling/jfr/JfrProfiler;
      intermediary field_35576 Lnet/minecraft/class_6505;field_35576:Lnet/minecraft/class_6505;
      official k Lbna;k:Lbna;
    • currentRecording

      @Nullable @Nullable Recording currentRecording
      Mappings:
      Namespace Name Mixin selector
      named currentRecording Lnet/minecraft/util/profiling/jfr/JfrProfiler;currentRecording:Ljdk/jfr/Recording;
      intermediary field_34411 Lnet/minecraft/class_6505;field_34411:Ljdk/jfr/Recording;
      official l Lbna;l:Ljdk/jfr/Recording;
    • tickTime

      private float tickTime
      Mappings:
      Namespace Name Mixin selector
      named tickTime Lnet/minecraft/util/profiling/jfr/JfrProfiler;tickTime:F
      intermediary field_35577 Lnet/minecraft/class_6505;field_35577:F
      official m Lbna;m:F
    • summaryRecorderByAddress

      private final Map<String,NetworkSummaryEvent.Recorder> summaryRecorderByAddress
      Mappings:
      Namespace Name Mixin selector
      named summaryRecorderByAddress Lnet/minecraft/util/profiling/jfr/JfrProfiler;summaryRecorderByAddress:Ljava/util/Map;
      intermediary field_35578 Lnet/minecraft/class_6505;field_35578:Ljava/util/Map;
      official n Lbna;n:Ljava/util/Map;
  • Constructor Details

    • JfrProfiler

      private JfrProfiler()
  • Method Details

    • getInstance

      public static JfrProfiler getInstance()
      Mappings:
      Namespace Name Mixin selector
      named getInstance Lnet/minecraft/util/profiling/jfr/JfrProfiler;getInstance()Lnet/minecraft/util/profiling/jfr/JfrProfiler;
      intermediary method_39428 Lnet/minecraft/class_6505;method_39428()Lnet/minecraft/class_6505;
      official a Lbna;a()Lbna;
    • start

      public boolean start(InstanceType instanceType)
      Specified by:
      start in interface FlightProfiler
      Mappings:
      Namespace Name Mixin selector
      named start Lnet/minecraft/util/profiling/jfr/FlightProfiler;start(Lnet/minecraft/util/profiling/jfr/InstanceType;)Z
      intermediary method_37981 Lnet/minecraft/class_6611;method_37981(Lnet/minecraft/class_6506;)Z
      official a Lbnb;a(Lbmz;)Z
    • stop

      public Path stop()
      Specified by:
      stop in interface FlightProfiler
      Mappings:
      Namespace Name Mixin selector
      named stop Lnet/minecraft/util/profiling/jfr/FlightProfiler;stop()Ljava/nio/file/Path;
      intermediary method_37980 Lnet/minecraft/class_6611;method_37980()Ljava/nio/file/Path;
      official b Lbnb;b()Ljava/nio/file/Path;
    • isProfiling

      public boolean isProfiling()
      Specified by:
      isProfiling in interface FlightProfiler
      Mappings:
      Namespace Name Mixin selector
      named isProfiling Lnet/minecraft/util/profiling/jfr/FlightProfiler;isProfiling()Z
      intermediary method_37984 Lnet/minecraft/class_6611;method_37984()Z
      official c Lbnb;c()Z
    • isAvailable

      public boolean isAvailable()
      Specified by:
      isAvailable in interface FlightProfiler
      Mappings:
      Namespace Name Mixin selector
      named isAvailable Lnet/minecraft/util/profiling/jfr/FlightProfiler;isAvailable()Z
      intermediary method_38658 Lnet/minecraft/class_6611;method_38658()Z
      official d Lbnb;d()Z
    • start

      private boolean start(Reader reader, InstanceType instanceType)
      Mappings:
      Namespace Name Mixin selector
      named start Lnet/minecraft/util/profiling/jfr/JfrProfiler;start(Ljava/io/Reader;Lnet/minecraft/util/profiling/jfr/InstanceType;)Z
      intermediary method_37983 Lnet/minecraft/class_6505;method_37983(Ljava/io/Reader;Lnet/minecraft/class_6506;)Z
      official a Lbna;a(Ljava/io/Reader;Lbmz;)Z
    • addListener

      private void addListener()
      Mappings:
      Namespace Name Mixin selector
      named addListener Lnet/minecraft/util/profiling/jfr/JfrProfiler;addListener()V
      intermediary method_38660 Lnet/minecraft/class_6505;method_38660()V
      official f Lbna;f()V
    • onTick

      public void onTick(float tickTime)
      Specified by:
      onTick in interface FlightProfiler
      Mappings:
      Namespace Name Mixin selector
      named onTick Lnet/minecraft/util/profiling/jfr/FlightProfiler;onTick(F)V
      intermediary method_38654 Lnet/minecraft/class_6611;method_38654(F)V
      official a Lbnb;a(F)V
    • onPacketReceived

      public void onPacketReceived(NetworkPhase state, PacketType<?> type, SocketAddress remoteAddress, int bytes)
      Specified by:
      onPacketReceived in interface FlightProfiler
      Mappings:
      Namespace Name Mixin selector
      named onPacketReceived Lnet/minecraft/util/profiling/jfr/FlightProfiler;onPacketReceived(Lnet/minecraft/network/NetworkPhase;Lnet/minecraft/network/packet/PacketType;Ljava/net/SocketAddress;I)V
      intermediary method_38656 Lnet/minecraft/class_6611;method_38656(Lnet/minecraft/class_2539;Lnet/minecraft/class_9145;Ljava/net/SocketAddress;I)V
      official a Lbnb;a(Lvq;Lzd;Ljava/net/SocketAddress;I)V
    • onPacketSent

      public void onPacketSent(NetworkPhase state, PacketType<?> type, SocketAddress remoteAddress, int bytes)
      Specified by:
      onPacketSent in interface FlightProfiler
      Mappings:
      Namespace Name Mixin selector
      named onPacketSent Lnet/minecraft/util/profiling/jfr/FlightProfiler;onPacketSent(Lnet/minecraft/network/NetworkPhase;Lnet/minecraft/network/packet/PacketType;Ljava/net/SocketAddress;I)V
      intermediary method_38657 Lnet/minecraft/class_6611;method_38657(Lnet/minecraft/class_2539;Lnet/minecraft/class_9145;Ljava/net/SocketAddress;I)V
      official b Lbnb;b(Lvq;Lzd;Ljava/net/SocketAddress;I)V
    • getOrCreateSummaryRecorder

      private NetworkSummaryEvent.Recorder getOrCreateSummaryRecorder(SocketAddress address)
      Mappings:
      Namespace Name Mixin selector
      named getOrCreateSummaryRecorder Lnet/minecraft/util/profiling/jfr/JfrProfiler;getOrCreateSummaryRecorder(Ljava/net/SocketAddress;)Lnet/minecraft/util/profiling/jfr/event/NetworkSummaryEvent$Recorder;
      intermediary method_39429 Lnet/minecraft/class_6505;method_39429(Ljava/net/SocketAddress;)Lnet/minecraft/util/profiling/jfr/event/NetworkSummaryEvent$class_6779;
      official a Lbna;a(Ljava/net/SocketAddress;)Lnet/minecraft/util/profiling/jfr/event/NetworkSummaryEvent$b;
    • onChunkRegionRead

      public void onChunkRegionRead(StorageKey key, ChunkPos chunkPos, ChunkCompressionFormat format, int bytes)
      Specified by:
      onChunkRegionRead in interface FlightProfiler
      Mappings:
      Namespace Name Mixin selector
      named onChunkRegionRead Lnet/minecraft/util/profiling/jfr/FlightProfiler;onChunkRegionRead(Lnet/minecraft/world/storage/StorageKey;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/storage/ChunkCompressionFormat;I)V
      intermediary method_56979 Lnet/minecraft/class_6611;method_56979(Lnet/minecraft/class_9240;Lnet/minecraft/class_1923;Lnet/minecraft/class_4486;I)V
      official a Lbnb;a(Ldwa;Ldbn;Ldvz;I)V
    • onChunkRegionWrite

      public void onChunkRegionWrite(StorageKey key, ChunkPos chunkPos, ChunkCompressionFormat format, int bytes)
      Specified by:
      onChunkRegionWrite in interface FlightProfiler
      Mappings:
      Namespace Name Mixin selector
      named onChunkRegionWrite Lnet/minecraft/util/profiling/jfr/FlightProfiler;onChunkRegionWrite(Lnet/minecraft/world/storage/StorageKey;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/storage/ChunkCompressionFormat;I)V
      intermediary method_56980 Lnet/minecraft/class_6611;method_56980(Lnet/minecraft/class_9240;Lnet/minecraft/class_1923;Lnet/minecraft/class_4486;I)V
      official b Lbnb;b(Ldwa;Ldbn;Ldvz;I)V
    • startWorldLoadProfiling

      @Nullable public @Nullable Finishable startWorldLoadProfiling()
      Specified by:
      startWorldLoadProfiling in interface FlightProfiler
      Mappings:
      Namespace Name Mixin selector
      named startWorldLoadProfiling Lnet/minecraft/util/profiling/jfr/FlightProfiler;startWorldLoadProfiling()Lnet/minecraft/util/function/Finishable;
      intermediary method_38659 Lnet/minecraft/class_6611;method_38659()Lnet/minecraft/class_6613;
      official e Lbnb;e()Lbne;
    • startChunkGenerationProfiling

      @Nullable public @Nullable Finishable startChunkGenerationProfiling(ChunkPos chunkPos, RegistryKey<World> world, String targetStatus)
      Specified by:
      startChunkGenerationProfiling in interface FlightProfiler
      Mappings:
      Namespace Name Mixin selector
      named startChunkGenerationProfiling Lnet/minecraft/util/profiling/jfr/FlightProfiler;startChunkGenerationProfiling(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/registry/RegistryKey;Ljava/lang/String;)Lnet/minecraft/util/function/Finishable;
      intermediary method_38655 Lnet/minecraft/class_6611;method_38655(Lnet/minecraft/class_1923;Lnet/minecraft/class_5321;Ljava/lang/String;)Lnet/minecraft/class_6613;
      official a Lbnb;a(Ldbn;Lakj;Ljava/lang/String;)Lbne;