Class ProfileResultImpl

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

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

    • LOGGER

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

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

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

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

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

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

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

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

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

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

    • ProfileResultImpl

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

    • getInfo

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

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

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

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

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

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

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

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

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

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

      public String getRootTimings()
      Specified by:
      getRootTimings in interface ProfileResult
      Mappings:
      Namespace Name Mixin selector
      named getRootTimings Lnet/minecraft/util/profiler/ProfileResult;getRootTimings()Ljava/lang/String;
      intermediary method_34970 Lnet/minecraft/class_3696;method_34970()Ljava/lang/String;
      official e Lbni;e()Ljava/lang/String;
    • indent

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

      private void appendTiming(int level, String name, StringBuilder sb)
      Mappings:
      Namespace Name Mixin selector
      named appendTiming Lnet/minecraft/util/profiler/ProfileResultImpl;appendTiming(ILjava/lang/String;Ljava/lang/StringBuilder;)V
      intermediary method_16061 Lnet/minecraft/class_3692;method_16061(ILjava/lang/String;Ljava/lang/StringBuilder;)V
      official a Lbnf;a(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
      named appendCounter Lnet/minecraft/util/profiler/ProfileResultImpl;appendCounter(ILjava/lang/String;Lnet/minecraft/util/profiler/ProfileResultImpl$CounterInfo;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
      official a Lbnf;a(ILjava/lang/String;Lbnf$a;ILjava/lang/StringBuilder;)V
    • appendCounterDump

      private void appendCounterDump(Map<String,ProfileResultImpl.CounterInfo> counters, StringBuilder sb, int tickSpan)
      Mappings:
      Namespace Name Mixin selector
      named appendCounterDump Lnet/minecraft/util/profiler/ProfileResultImpl;appendCounterDump(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
      official a Lbnf;a(Ljava/util/Map;Ljava/lang/StringBuilder;I)V
    • generateWittyComment

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

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