Class ProfileResultImpl

java.lang.Object
net.minecraft.util.profiler.ProfileResultImpl
All Implemented Interfaces:
ProfileResult

public class ProfileResultImpl
extends Object
implements ProfileResult
Mappings:
Namespace Name
official aoo
intermediary net/minecraft/class_3692
named net/minecraft/util/profiler/ProfileResultImpl
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Laoo;a:Lorg/apache/logging/log4j/Logger;
      intermediary field_16279 Lnet/minecraft/class_3692;field_16279:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/util/profiler/ProfileResultImpl;LOGGER:Lorg/apache/logging/log4j/Logger;
    • EMPTY_INFO

      private static final ProfileLocationInfo EMPTY_INFO
      Mappings:
      Namespace Name Mixin selector
      official b Laoo;b:Laot;
      intermediary field_21823 Lnet/minecraft/class_3692;field_21823:Lnet/minecraft/class_4748;
      named EMPTY_INFO Lnet/minecraft/util/profiler/ProfileResultImpl;EMPTY_INFO:Lnet/minecraft/util/profiler/ProfileLocationInfo;
    • SPLITTER

      private static final Splitter SPLITTER
      Mappings:
      Namespace Name Mixin selector
      official c Laoo;c:Lcom/google/common/base/Splitter;
      intermediary field_21824 Lnet/minecraft/class_3692;field_21824:Lcom/google/common/base/Splitter;
      named SPLITTER Lnet/minecraft/util/profiler/ProfileResultImpl;SPLITTER:Lcom/google/common/base/Splitter;
    • COMPARATOR

      private static final Comparator<Map.Entry<String,​ProfileResultImpl.CounterInfo>> COMPARATOR
      Mappings:
      Namespace Name Mixin selector
      official d Laoo;d:Ljava/util/Comparator;
      intermediary field_21825 Lnet/minecraft/class_3692;field_21825:Ljava/util/Comparator;
      named COMPARATOR Lnet/minecraft/util/profiler/ProfileResultImpl;COMPARATOR:Ljava/util/Comparator;
    • locationInfos

      private final Map<String,​? extends ProfileLocationInfo> locationInfos
      Mappings:
      Namespace Name Mixin selector
      official e Laoo;e:Ljava/util/Map;
      intermediary field_21826 Lnet/minecraft/class_3692;field_21826:Ljava/util/Map;
      named locationInfos Lnet/minecraft/util/profiler/ProfileResultImpl;locationInfos:Ljava/util/Map;
    • startTime

      private final long startTime
      Mappings:
      Namespace Name Mixin selector
      official f Laoo;f:J
      intermediary field_16278 Lnet/minecraft/class_3692;field_16278:J
      named startTime Lnet/minecraft/util/profiler/ProfileResultImpl;startTime:J
    • startTick

      private final int startTick
      Mappings:
      Namespace Name Mixin selector
      official g Laoo;g:I
      intermediary field_16275 Lnet/minecraft/class_3692;field_16275:I
      named startTick Lnet/minecraft/util/profiler/ProfileResultImpl;startTick:I
    • endTime

      private final long endTime
      Mappings:
      Namespace Name Mixin selector
      official h Laoo;h:J
      intermediary field_16276 Lnet/minecraft/class_3692;field_16276:J
      named endTime Lnet/minecraft/util/profiler/ProfileResultImpl;endTime:J
    • endTick

      private final int endTick
      Mappings:
      Namespace Name Mixin selector
      official i Laoo;i:I
      intermediary field_16274 Lnet/minecraft/class_3692;field_16274:I
      named endTick Lnet/minecraft/util/profiler/ProfileResultImpl;endTick:I
    • tickDuration

      private final int tickDuration
      Mappings:
      Namespace Name Mixin selector
      official j Laoo;j:I
      intermediary field_19383 Lnet/minecraft/class_3692;field_19383:I
      named tickDuration Lnet/minecraft/util/profiler/ProfileResultImpl;tickDuration:I
  • Constructor Details

    • ProfileResultImpl

      public ProfileResultImpl​(Map<String,​? extends ProfileLocationInfo> locationInfos, long startTime, int startTick, long endTime, int endTick)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laoo;<init>(Ljava/util/Map;JIJI)V
      intermediary <init> Lnet/minecraft/class_3692;<init>(Ljava/util/Map;JIJI)V
      named <init> Lnet/minecraft/util/profiler/ProfileResultImpl;<init>(Ljava/util/Map;JIJI)V
  • Method Details

    • getInfo

      private ProfileLocationInfo getInfo​(String path)
      Mappings:
      Namespace Name Mixin selector
      official c Laoo;c(Ljava/lang/String;)Laot;
      intermediary method_24262 Lnet/minecraft/class_3692;method_24262(Ljava/lang/String;)Lnet/minecraft/class_4748;
      named getInfo Lnet/minecraft/util/profiler/ProfileResultImpl;getInfo(Ljava/lang/String;)Lnet/minecraft/util/profiler/ProfileLocationInfo;
    • getTimings

      public List<ProfilerTiming> getTimings​(String parentPath)
      Specified by:
      getTimings in interface ProfileResult
      Mappings:
      Namespace Name Mixin selector
      official a Laor;a(Ljava/lang/String;)Ljava/util/List;
      intermediary method_16067 Lnet/minecraft/class_3696;method_16067(Ljava/lang/String;)Ljava/util/List;
      named getTimings Lnet/minecraft/util/profiler/ProfileResult;getTimings(Ljava/lang/String;)Ljava/util/List;
    • isSubpath

      private static boolean isSubpath​(String parent, String path)
      Mappings:
      Namespace Name Mixin selector
      official a Laoo;a(Ljava/lang/String;Ljava/lang/String;)Z
      intermediary method_24255 Lnet/minecraft/class_3692;method_24255(Ljava/lang/String;Ljava/lang/String;)Z
      named isSubpath Lnet/minecraft/util/profiler/ProfileResultImpl;isSubpath(Ljava/lang/String;Ljava/lang/String;)Z
    • setupCounters

      private Map<String,​ProfileResultImpl.CounterInfo> setupCounters()
      Mappings:
      Namespace Name Mixin selector
      official h Laoo;h()Ljava/util/Map;
      intermediary method_24264 Lnet/minecraft/class_3692;method_24264()Ljava/util/Map;
      named setupCounters Lnet/minecraft/util/profiler/ProfileResultImpl;setupCounters()Ljava/util/Map;
    • getStartTime

      public long getStartTime()
      Specified by:
      getStartTime in interface ProfileResult
      Mappings:
      Namespace Name Mixin selector
      official a Laor;a()J
      intermediary method_16068 Lnet/minecraft/class_3696;method_16068()J
      named getStartTime Lnet/minecraft/util/profiler/ProfileResult;getStartTime()J
    • getStartTick

      public int getStartTick()
      Specified by:
      getStartTick in interface ProfileResult
      Mappings:
      Namespace Name Mixin selector
      official b Laor;b()I
      intermediary method_16072 Lnet/minecraft/class_3696;method_16072()I
      named getStartTick Lnet/minecraft/util/profiler/ProfileResult;getStartTick()I
    • getEndTime

      public long getEndTime()
      Specified by:
      getEndTime in interface ProfileResult
      Mappings:
      Namespace Name Mixin selector
      official c Laor;c()J
      intermediary method_16073 Lnet/minecraft/class_3696;method_16073()J
      named getEndTime Lnet/minecraft/util/profiler/ProfileResult;getEndTime()J
    • getEndTick

      public int getEndTick()
      Specified by:
      getEndTick in interface ProfileResult
      Mappings:
      Namespace Name Mixin selector
      official d Laor;d()I
      intermediary method_16070 Lnet/minecraft/class_3696;method_16070()I
      named getEndTick Lnet/minecraft/util/profiler/ProfileResult;getEndTick()I
    • save

      public boolean save​(File file)
      Specified by:
      save in interface ProfileResult
      Mappings:
      Namespace Name Mixin selector
      official a Laor;a(Ljava/io/File;)Z
      intermediary method_16069 Lnet/minecraft/class_3696;method_16069(Ljava/io/File;)Z
      named save Lnet/minecraft/util/profiler/ProfileResult;save(Ljava/io/File;)Z
    • asString

      protected String asString​(long timeSpan, int tickSpan)
      Mappings:
      Namespace Name Mixin selector
      official a Laoo;a(JI)Ljava/lang/String;
      intermediary method_16063 Lnet/minecraft/class_3692;method_16063(JI)Ljava/lang/String;
      named asString Lnet/minecraft/util/profiler/ProfileResultImpl;asString(JI)Ljava/lang/String;
    • indent

      private static StringBuilder indent​(StringBuilder sb, int size)
      Mappings:
      Namespace Name Mixin selector
      official a Laoo;a(Ljava/lang/StringBuilder;I)Ljava/lang/StringBuilder;
      intermediary method_24256 Lnet/minecraft/class_3692;method_24256(Ljava/lang/StringBuilder;I)Ljava/lang/StringBuilder;
      named indent Lnet/minecraft/util/profiler/ProfileResultImpl;indent(Ljava/lang/StringBuilder;I)Ljava/lang/StringBuilder;
    • appendTiming

      private void appendTiming​(int level, String name, StringBuilder sb)
      Mappings:
      Namespace Name Mixin selector
      official a Laoo;a(ILjava/lang/String;Ljava/lang/StringBuilder;)V
      intermediary method_16061 Lnet/minecraft/class_3692;method_16061(ILjava/lang/String;Ljava/lang/StringBuilder;)V
      named appendTiming Lnet/minecraft/util/profiler/ProfileResultImpl;appendTiming(ILjava/lang/String;Ljava/lang/StringBuilder;)V
    • appendCounter

      private void appendCounter​(int depth, String name, ProfileResultImpl.CounterInfo info, int tickSpan, StringBuilder sb)
      Mappings:
      Namespace Name Mixin selector
      official a Laoo;a(ILjava/lang/String;Laoo$a;ILjava/lang/StringBuilder;)V
      intermediary method_24253 Lnet/minecraft/class_3692;method_24253(ILjava/lang/String;Lnet/minecraft/class_3692$class_4747;ILjava/lang/StringBuilder;)V
      named appendCounter Lnet/minecraft/util/profiler/ProfileResultImpl;appendCounter(ILjava/lang/String;Lnet/minecraft/util/profiler/ProfileResultImpl$CounterInfo;ILjava/lang/StringBuilder;)V
    • appendCounterDump

      private void appendCounterDump​(Map<String,​ProfileResultImpl.CounterInfo> counters, StringBuilder sb, int tickSpan)
      Mappings:
      Namespace Name Mixin selector
      official a Laoo;a(Ljava/util/Map;Ljava/lang/StringBuilder;I)V
      intermediary method_24260 Lnet/minecraft/class_3692;method_24260(Ljava/util/Map;Ljava/lang/StringBuilder;I)V
      named appendCounterDump Lnet/minecraft/util/profiler/ProfileResultImpl;appendCounterDump(Ljava/util/Map;Ljava/lang/StringBuilder;I)V
    • generateWittyComment

      private static String generateWittyComment()
      Mappings:
      Namespace Name Mixin selector
      official i Laoo;i()Ljava/lang/String;
      intermediary method_16062 Lnet/minecraft/class_3692;method_16062()Ljava/lang/String;
      named generateWittyComment Lnet/minecraft/util/profiler/ProfileResultImpl;generateWittyComment()Ljava/lang/String;
    • getTickSpan

      public int getTickSpan()
      Specified by:
      getTickSpan in interface ProfileResult
      Mappings:
      Namespace Name Mixin selector
      official f Laor;f()I
      intermediary method_16074 Lnet/minecraft/class_3696;method_16074()I
      named getTickSpan Lnet/minecraft/util/profiler/ProfileResult;getTickSpan()I