Class ProfilerSystem

java.lang.Object
net.minecraft.util.profiler.ProfilerSystem
All Implemented Interfaces:
Profiler, ReadableProfiler

public class ProfilerSystem extends Object implements ReadableProfiler
Mappings:
Namespace Name
official asa
intermediary net/minecraft/class_3533
named net/minecraft/util/profiler/ProfilerSystem
  • Field Details

    • TIMEOUT_NANOSECONDS

      private static final long TIMEOUT_NANOSECONDS
      Mappings:
      Namespace Name Mixin selector
      official a Lasa;a:J
      intermediary field_16267 Lnet/minecraft/class_3533;field_16267:J
      named TIMEOUT_NANOSECONDS Lnet/minecraft/util/profiler/ProfilerSystem;TIMEOUT_NANOSECONDS:J
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official c Lasa;c:Lorg/apache/logging/log4j/Logger;
      intermediary field_15735 Lnet/minecraft/class_3533;field_15735:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/util/profiler/ProfilerSystem;LOGGER:Lorg/apache/logging/log4j/Logger;
    • path

      private final List<String> path
      Mappings:
      Namespace Name Mixin selector
      official d Lasa;d:Ljava/util/List;
      intermediary field_15736 Lnet/minecraft/class_3533;field_15736:Ljava/util/List;
      named path Lnet/minecraft/util/profiler/ProfilerSystem;path:Ljava/util/List;
    • timeList

      private final LongList timeList
      Mappings:
      Namespace Name Mixin selector
      official e Lasa;e:Lit/unimi/dsi/fastutil/longs/LongList;
      intermediary field_15730 Lnet/minecraft/class_3533;field_15730:Lit/unimi/dsi/fastutil/longs/LongList;
      named timeList Lnet/minecraft/util/profiler/ProfilerSystem;timeList:Lit/unimi/dsi/fastutil/longs/LongList;
    • locationInfos

      private final Map<String,ProfilerSystem.LocatedInfo> locationInfos
      Mappings:
      Namespace Name Mixin selector
      official f Lasa;f:Ljava/util/Map;
      intermediary field_21818 Lnet/minecraft/class_3533;field_21818:Ljava/util/Map;
      named locationInfos Lnet/minecraft/util/profiler/ProfilerSystem;locationInfos:Ljava/util/Map;
    • endTickGetter

      private final IntSupplier endTickGetter
      Mappings:
      Namespace Name Mixin selector
      official g Lasa;g:Ljava/util/function/IntSupplier;
      intermediary field_16266 Lnet/minecraft/class_3533;field_16266:Ljava/util/function/IntSupplier;
      named endTickGetter Lnet/minecraft/util/profiler/ProfilerSystem;endTickGetter:Ljava/util/function/IntSupplier;
    • timeGetter

      private final LongSupplier timeGetter
      Mappings:
      Namespace Name Mixin selector
      official h Lasa;h:Ljava/util/function/LongSupplier;
      intermediary field_21961 Lnet/minecraft/class_3533;field_21961:Ljava/util/function/LongSupplier;
      named timeGetter Lnet/minecraft/util/profiler/ProfilerSystem;timeGetter:Ljava/util/function/LongSupplier;
    • startTime

      private final long startTime
      Mappings:
      Namespace Name Mixin selector
      official i Lasa;i:J
      intermediary field_15732 Lnet/minecraft/class_3533;field_15732:J
      named startTime Lnet/minecraft/util/profiler/ProfilerSystem;startTime:J
    • startTick

      private final int startTick
      Mappings:
      Namespace Name Mixin selector
      official j Lasa;j:I
      intermediary field_15729 Lnet/minecraft/class_3533;field_15729:I
      named startTick Lnet/minecraft/util/profiler/ProfilerSystem;startTick:I
    • fullPath

      private String fullPath
      Mappings:
      Namespace Name Mixin selector
      official k Lasa;k:Ljava/lang/String;
      intermediary field_15734 Lnet/minecraft/class_3533;field_15734:Ljava/lang/String;
      named fullPath Lnet/minecraft/util/profiler/ProfilerSystem;fullPath:Ljava/lang/String;
    • tickStarted

      private boolean tickStarted
      Mappings:
      Namespace Name Mixin selector
      official l Lasa;l:Z
      intermediary field_15733 Lnet/minecraft/class_3533;field_15733:Z
      named tickStarted Lnet/minecraft/util/profiler/ProfilerSystem;tickStarted:Z
    • currentInfo

      Mappings:
      Namespace Name Mixin selector
      official m Lasa;m:Lasa$a;
      intermediary field_21819 Lnet/minecraft/class_3533;field_21819:Lnet/minecraft/class_3533$class_4746;
      named currentInfo Lnet/minecraft/util/profiler/ProfilerSystem;currentInfo:Lnet/minecraft/util/profiler/ProfilerSystem$LocatedInfo;
    • checkTimeout

      private final boolean checkTimeout
      Mappings:
      Namespace Name Mixin selector
      official n Lasa;n:Z
      intermediary field_20345 Lnet/minecraft/class_3533;field_20345:Z
      named checkTimeout Lnet/minecraft/util/profiler/ProfilerSystem;checkTimeout:Z
    • sampleTypes

      private final Set<Pair<String,SampleType>> sampleTypes
      Mappings:
      Namespace Name Mixin selector
      official o Lasa;o:Ljava/util/Set;
      intermediary field_33873 Lnet/minecraft/class_3533;field_33873:Ljava/util/Set;
      named sampleTypes Lnet/minecraft/util/profiler/ProfilerSystem;sampleTypes:Ljava/util/Set;
  • Constructor Details

    • ProfilerSystem

      public ProfilerSystem(LongSupplier timeGetter, IntSupplier tickGetter, boolean checkTimeout)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lasa;<init>(Ljava/util/function/LongSupplier;Ljava/util/function/IntSupplier;Z)V
      intermediary <init> Lnet/minecraft/class_3533;<init>(Ljava/util/function/LongSupplier;Ljava/util/function/IntSupplier;Z)V
      named <init> Lnet/minecraft/util/profiler/ProfilerSystem;<init>(Ljava/util/function/LongSupplier;Ljava/util/function/IntSupplier;Z)V
  • Method Details

    • startTick

      public void startTick()
      Specified by:
      startTick in interface Profiler
      Mappings:
      Namespace Name Mixin selector
      official a Lash;a()V
      intermediary method_16065 Lnet/minecraft/class_3695;method_16065()V
      named startTick Lnet/minecraft/util/profiler/Profiler;startTick()V
    • endTick

      public void endTick()
      Specified by:
      endTick in interface Profiler
      Mappings:
      Namespace Name Mixin selector
      official b Lash;b()V
      intermediary method_16066 Lnet/minecraft/class_3695;method_16066()V
      named endTick Lnet/minecraft/util/profiler/Profiler;endTick()V
    • push

      public void push(String location)
      Specified by:
      push in interface Profiler
      Mappings:
      Namespace Name Mixin selector
      official a Lash;a(Ljava/lang/String;)V
      intermediary method_15396 Lnet/minecraft/class_3695;method_15396(Ljava/lang/String;)V
      named push Lnet/minecraft/util/profiler/Profiler;push(Ljava/lang/String;)V
    • push

      public void push(Supplier<String> locationGetter)
      Specified by:
      push in interface Profiler
      Mappings:
      Namespace Name Mixin selector
      official a Lash;a(Ljava/util/function/Supplier;)V
      intermediary method_15400 Lnet/minecraft/class_3695;method_15400(Ljava/util/function/Supplier;)V
      named push Lnet/minecraft/util/profiler/Profiler;push(Ljava/util/function/Supplier;)V
    • markSampleType

      public void markSampleType(SampleType type)
      Specified by:
      markSampleType in interface Profiler
      Mappings:
      Namespace Name Mixin selector
      official a Lash;a(Latl;)V
      intermediary method_37167 Lnet/minecraft/class_3695;method_37167(Lnet/minecraft/class_5949;)V
      named markSampleType Lnet/minecraft/util/profiler/Profiler;markSampleType(Lnet/minecraft/util/profiler/SampleType;)V
    • pop

      public void pop()
      Specified by:
      pop in interface Profiler
      Mappings:
      Namespace Name Mixin selector
      official c Lash;c()V
      intermediary method_15407 Lnet/minecraft/class_3695;method_15407()V
      named pop Lnet/minecraft/util/profiler/Profiler;pop()V
    • swap

      public void swap(String location)
      Specified by:
      swap in interface Profiler
      Mappings:
      Namespace Name Mixin selector
      official b Lash;b(Ljava/lang/String;)V
      intermediary method_15405 Lnet/minecraft/class_3695;method_15405(Ljava/lang/String;)V
      named swap Lnet/minecraft/util/profiler/Profiler;swap(Ljava/lang/String;)V
    • swap

      public void swap(Supplier<String> locationGetter)
      Specified by:
      swap in interface Profiler
      Mappings:
      Namespace Name Mixin selector
      official b Lash;b(Ljava/util/function/Supplier;)V
      intermediary method_15403 Lnet/minecraft/class_3695;method_15403(Ljava/util/function/Supplier;)V
      named swap Lnet/minecraft/util/profiler/Profiler;swap(Ljava/util/function/Supplier;)V
    • getCurrentInfo

      private ProfilerSystem.LocatedInfo getCurrentInfo()
      Mappings:
      Namespace Name Mixin selector
      official f Lasa;f()Lasa$a;
      intermediary method_24246 Lnet/minecraft/class_3533;method_24246()Lnet/minecraft/class_3533$class_4746;
      named getCurrentInfo Lnet/minecraft/util/profiler/ProfilerSystem;getCurrentInfo()Lnet/minecraft/util/profiler/ProfilerSystem$LocatedInfo;
    • visit

      public void visit(String marker, int int2)
      Increment the visit count for a marker.

      This is useful to keep track of number of calls made to performance- wise expensive methods.

      Specified by:
      visit in interface Profiler
      Parameters:
      marker - a unique marker
      Mappings:
      Namespace Name Mixin selector
      official a Lash;a(Ljava/lang/String;I)V
      intermediary method_24270 Lnet/minecraft/class_3695;method_24270(Ljava/lang/String;I)V
      named visit Lnet/minecraft/util/profiler/Profiler;visit(Ljava/lang/String;I)V
    • visit

      public void visit(Supplier<String> markerGetter, int int2)
      Increment the visit count for a marker.

      This is useful to keep track of number of calls made to performance- wise expensive methods.

      This method is preferred if getting the marker is costly; the supplier won't be called if the profiler is disabled.

      Specified by:
      visit in interface Profiler
      Parameters:
      markerGetter - the getter for a unique marker
      Mappings:
      Namespace Name Mixin selector
      official a Lash;a(Ljava/util/function/Supplier;I)V
      intermediary method_24271 Lnet/minecraft/class_3695;method_24271(Ljava/util/function/Supplier;I)V
      named visit Lnet/minecraft/util/profiler/Profiler;visit(Ljava/util/function/Supplier;I)V
    • getResult

      public ProfileResult getResult()
      Specified by:
      getResult in interface ReadableProfiler
      Mappings:
      Namespace Name Mixin selector
      official d Lasf;d()Lasg;
      intermediary method_16064 Lnet/minecraft/class_3693;method_16064()Lnet/minecraft/class_3696;
      named getResult Lnet/minecraft/util/profiler/ReadableProfiler;getResult()Lnet/minecraft/util/profiler/ProfileResult;
    • getInfo

      Specified by:
      getInfo in interface ReadableProfiler
      Mappings:
      Namespace Name Mixin selector
      official c Lasf;c(Ljava/lang/String;)Lasa$a;
      intermediary method_34696 Lnet/minecraft/class_3693;method_34696(Ljava/lang/String;)Lnet/minecraft/class_3533$class_4746;
      named getInfo Lnet/minecraft/util/profiler/ReadableProfiler;getInfo(Ljava/lang/String;)Lnet/minecraft/util/profiler/ProfilerSystem$LocatedInfo;
    • getSampleTargets

      public Set<Pair<String,SampleType>> getSampleTargets()
      Returns a set of pairs of profiler location and sample kind.
      Specified by:
      getSampleTargets in interface ReadableProfiler
      Returns:
      a set of pairs of profiler location and sample kind
      Mappings:
      Namespace Name Mixin selector
      official e Lasf;e()Ljava/util/Set;
      intermediary method_37168 Lnet/minecraft/class_3693;method_37168()Ljava/util/Set;
      named getSampleTargets Lnet/minecraft/util/profiler/ReadableProfiler;getSampleTargets()Ljava/util/Set;