Interface Profiler

All Known Subinterfaces:
ReadableProfiler
All Known Implementing Classes:
DummyProfiler, Profiler.UnionProfiler, ProfilerSystem, TracyProfiler

public interface Profiler
Mappings:
Namespace Name
named net/minecraft/util/profiler/Profiler
intermediary net/minecraft/class_3695
official bps
  • Field Details

    • ROOT_NAME

      static final String ROOT_NAME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ROOT_NAME Lnet/minecraft/util/profiler/Profiler;ROOT_NAME:Ljava/lang/String;
      intermediary field_29925 Lnet/minecraft/class_3695;field_29925:Ljava/lang/String;
      official b Lbps;b:Ljava/lang/String;
  • Method Details

    • startTick

      void startTick()
      Mappings:
      Namespace Name Mixin selector
      named startTick Lnet/minecraft/util/profiler/Profiler;startTick()V
      intermediary method_16065 Lnet/minecraft/class_3695;method_16065()V
      official a Lbps;a()V
    • endTick

      void endTick()
      Mappings:
      Namespace Name Mixin selector
      named endTick Lnet/minecraft/util/profiler/Profiler;endTick()V
      intermediary method_16066 Lnet/minecraft/class_3695;method_16066()V
      official b Lbps;b()V
    • push

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

      void push(Supplier<String> locationGetter)
      Mappings:
      Namespace Name Mixin selector
      named push Lnet/minecraft/util/profiler/Profiler;push(Ljava/util/function/Supplier;)V
      intermediary method_15400 Lnet/minecraft/class_3695;method_15400(Ljava/util/function/Supplier;)V
      official a Lbps;a(Ljava/util/function/Supplier;)V
    • pop

      void pop()
      Mappings:
      Namespace Name Mixin selector
      named pop Lnet/minecraft/util/profiler/Profiler;pop()V
      intermediary method_15407 Lnet/minecraft/class_3695;method_15407()V
      official c Lbps;c()V
    • swap

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

      void swap(Supplier<String> locationGetter)
      Mappings:
      Namespace Name Mixin selector
      named swap Lnet/minecraft/util/profiler/Profiler;swap(Ljava/util/function/Supplier;)V
      intermediary method_15403 Lnet/minecraft/class_3695;method_15403(Ljava/util/function/Supplier;)V
      official b Lbps;b(Ljava/util/function/Supplier;)V
    • addZoneText

      default void addZoneText(String label)
      Mappings:
      Namespace Name Mixin selector
      named addZoneText Lnet/minecraft/util/profiler/Profiler;addZoneText(Ljava/lang/String;)V
      intermediary method_64155 Lnet/minecraft/class_3695;method_64155(Ljava/lang/String;)V
      official e Lbps;e(Ljava/lang/String;)V
    • addZoneValue

      default void addZoneValue(long value)
      Mappings:
      Namespace Name Mixin selector
      named addZoneValue Lnet/minecraft/util/profiler/Profiler;addZoneValue(J)V
      intermediary method_64153 Lnet/minecraft/class_3695;method_64153(J)V
      official a Lbps;a(J)V
    • setZoneColor

      default void setZoneColor(int color)
      Mappings:
      Namespace Name Mixin selector
      named setZoneColor Lnet/minecraft/util/profiler/Profiler;setZoneColor(I)V
      intermediary method_64152 Lnet/minecraft/class_3695;method_64152(I)V
      official a Lbps;a(I)V
    • scoped

      default ScopedProfiler scoped(String name)
      Mappings:
      Namespace Name Mixin selector
      named scoped Lnet/minecraft/util/profiler/Profiler;scoped(Ljava/lang/String;)Lnet/minecraft/util/profiler/ScopedProfiler;
      intermediary method_64145 Lnet/minecraft/class_3695;method_64145(Ljava/lang/String;)Lnet/minecraft/class_10214;
      official d Lbps;d(Ljava/lang/String;)Lbpx;
    • scoped

      default ScopedProfiler scoped(Supplier<String> nameSupplier)
      Mappings:
      Namespace Name Mixin selector
      named scoped Lnet/minecraft/util/profiler/Profiler;scoped(Ljava/util/function/Supplier;)Lnet/minecraft/util/profiler/ScopedProfiler;
      intermediary method_64144 Lnet/minecraft/class_3695;method_64144(Ljava/util/function/Supplier;)Lnet/minecraft/class_10214;
      official c Lbps;c(Ljava/util/function/Supplier;)Lbpx;
    • markSampleType

      void markSampleType(SampleType type)
      Mappings:
      Namespace Name Mixin selector
      named markSampleType Lnet/minecraft/util/profiler/Profiler;markSampleType(Lnet/minecraft/util/profiler/SampleType;)V
      intermediary method_37167 Lnet/minecraft/class_3695;method_37167(Lnet/minecraft/class_5949;)V
      official a Lbps;a(Lbra;)V
    • visit

      default void visit(String marker)
      Mappings:
      Namespace Name Mixin selector
      named visit Lnet/minecraft/util/profiler/Profiler;visit(Ljava/lang/String;)V
      intermediary method_39278 Lnet/minecraft/class_3695;method_39278(Ljava/lang/String;)V
      official f Lbps;f(Ljava/lang/String;)V
    • visit

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

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

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

      default void visit(Supplier<String> markerGetter)
      Mappings:
      Namespace Name Mixin selector
      named visit Lnet/minecraft/util/profiler/Profiler;visit(Ljava/util/function/Supplier;)V
      intermediary method_39277 Lnet/minecraft/class_3695;method_39277(Ljava/util/function/Supplier;)V
      official d Lbps;d(Ljava/util/function/Supplier;)V
    • visit

      void visit(Supplier<String> markerGetter, int num)
      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.

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

      static Profiler union(Profiler first, Profiler second)
      Mappings:
      Namespace Name Mixin selector
      named union Lnet/minecraft/util/profiler/Profiler;union(Lnet/minecraft/util/profiler/Profiler;Lnet/minecraft/util/profiler/Profiler;)Lnet/minecraft/util/profiler/Profiler;
      intermediary method_64154 Lnet/minecraft/class_3695;method_64154(Lnet/minecraft/class_3695;Lnet/minecraft/class_3695;)Lnet/minecraft/class_3695;
      official a Lbps;a(Lbps;Lbps;)Lbps;