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
official awh
intermediary net/minecraft/class_6505
named net/minecraft/util/profiling/jfr/JfrProfiler
  • Field Details

    • LOGGER

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

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

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

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

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

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

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

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

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

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

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

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

    • JfrProfiler

      private JfrProfiler()
  • Method Details

    • getInstance

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

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

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

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

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

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

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

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

      public void onPacketReceived(int protocolId, int packetId, SocketAddress remoteAddress, int bytes)
      Specified by:
      onPacketReceived in interface FlightProfiler
      Mappings:
      Namespace Name Mixin selector
      official a Lawi;a(IILjava/net/SocketAddress;I)V
      intermediary method_38656 Lnet/minecraft/class_6611;method_38656(IILjava/net/SocketAddress;I)V
      named onPacketReceived Lnet/minecraft/util/profiling/jfr/FlightProfiler;onPacketReceived(IILjava/net/SocketAddress;I)V
    • onPacketSent

      public void onPacketSent(int protocolId, int packetId, SocketAddress remoteAddress, int bytes)
      Specified by:
      onPacketSent in interface FlightProfiler
      Mappings:
      Namespace Name Mixin selector
      official b Lawi;b(IILjava/net/SocketAddress;I)V
      intermediary method_38657 Lnet/minecraft/class_6611;method_38657(IILjava/net/SocketAddress;I)V
      named onPacketSent Lnet/minecraft/util/profiling/jfr/FlightProfiler;onPacketSent(IILjava/net/SocketAddress;I)V
    • getOrCreateSummaryRecorder

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

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

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