Class DummyProfiler

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

public class DummyProfiler extends Object implements ReadableProfiler
Mappings:
Namespace Name
official apr
intermediary net/minecraft/class_3694
named net/minecraft/util/profiler/DummyProfiler
  • Field Details

    • INSTANCE

      public static final DummyProfiler INSTANCE
      Mappings:
      Namespace Name Mixin selector
      official a Lapr;a:Lapr;
      intermediary field_16280 Lnet/minecraft/class_3694;field_16280:Lnet/minecraft/class_3694;
      named INSTANCE Lnet/minecraft/util/profiler/DummyProfiler;INSTANCE:Lnet/minecraft/util/profiler/DummyProfiler;
  • Constructor Details

    • DummyProfiler

      private DummyProfiler()
  • Method Details

    • startTick

      public void startTick()
      Specified by:
      startTick in interface Profiler
      Mappings:
      Namespace Name Mixin selector
      official a Lapu;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 Lapu;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 Lapu;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 Lapu;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
    • method_37167

      public void method_37167(SamplingChannel samplingChannel)
      Specified by:
      method_37167 in interface Profiler
      Mappings:
      Namespace Name Mixin selector
      official a Lapu;a(Lapy;)V
      intermediary method_37167 Lnet/minecraft/class_3695;method_37167(Lnet/minecraft/class_5949;)V
      named method_37167 Lnet/minecraft/util/profiler/Profiler;method_37167(Lnet/minecraft/client/util/profiler/SamplingChannel;)V
    • pop

      public void pop()
      Specified by:
      pop in interface Profiler
      Mappings:
      Namespace Name Mixin selector
      official c Lapu;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 Lapu;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 Lapu;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
    • visit

      public void visit(String marker)
      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 c Lapu;c(Ljava/lang/String;)V
      intermediary method_24270 Lnet/minecraft/class_3695;method_24270(Ljava/lang/String;)V
      named visit Lnet/minecraft/util/profiler/Profiler;visit(Ljava/lang/String;)V
    • visit

      public void visit(Supplier<String> markerGetter)
      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 c Lapu;c(Ljava/util/function/Supplier;)V
      intermediary method_24271 Lnet/minecraft/class_3695;method_24271(Ljava/util/function/Supplier;)V
      named visit Lnet/minecraft/util/profiler/Profiler;visit(Ljava/util/function/Supplier;)V
    • getResult

      public ProfileResult getResult()
      Specified by:
      getResult in interface ReadableProfiler
      Mappings:
      Namespace Name Mixin selector
      official d Laps;d()Lapt;
      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 d Laps;d(Ljava/lang/String;)Lapn$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;
    • method_37168

      public Set<Pair<String,SamplingChannel>> method_37168()
      Specified by:
      method_37168 in interface ReadableProfiler
      Mappings:
      Namespace Name Mixin selector
      official e Laps;e()Ljava/util/Set;
      intermediary method_37168 Lnet/minecraft/class_3693;method_37168()Ljava/util/Set;
      named method_37168 Lnet/minecraft/util/profiler/ReadableProfiler;method_37168()Ljava/util/Set;