Class Sampler

java.lang.Object
net.minecraft.util.profiler.Sampler
Direct Known Subclasses:
ExecutorSampling.MergedSampler

public class Sampler extends Object
Mappings:
Namespace Name
official atf
intermediary net/minecraft/class_5965
named net/minecraft/util/profiler/Sampler
  • Field Details

    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      official b Latf;b:Ljava/lang/String;
      intermediary field_33882 Lnet/minecraft/class_5965;field_33882:Ljava/lang/String;
      named name Lnet/minecraft/util/profiler/Sampler;name:Ljava/lang/String;
    • type

      private final SampleType type
      Mappings:
      Namespace Name Mixin selector
      official c Latf;c:Late;
      intermediary field_29598 Lnet/minecraft/class_5965;field_29598:Lnet/minecraft/class_5949;
      named type Lnet/minecraft/util/profiler/Sampler;type:Lnet/minecraft/util/profiler/SampleType;
    • retriever

      private final DoubleSupplier retriever
      Mappings:
      Namespace Name Mixin selector
      official d Latf;d:Ljava/util/function/DoubleSupplier;
      intermediary field_29599 Lnet/minecraft/class_5965;field_29599:Ljava/util/function/DoubleSupplier;
      named retriever Lnet/minecraft/util/profiler/Sampler;retriever:Ljava/util/function/DoubleSupplier;
    • ticksBuffer

      private final ByteBuf ticksBuffer
      Mappings:
      Namespace Name Mixin selector
      official e Latf;e:Lio/netty/buffer/ByteBuf;
      intermediary field_33883 Lnet/minecraft/class_5965;field_33883:Lio/netty/buffer/ByteBuf;
      named ticksBuffer Lnet/minecraft/util/profiler/Sampler;ticksBuffer:Lio/netty/buffer/ByteBuf;
    • valueBuffer

      private final ByteBuf valueBuffer
      Mappings:
      Namespace Name Mixin selector
      official f Latf;f:Lio/netty/buffer/ByteBuf;
      intermediary field_29600 Lnet/minecraft/class_5965;field_29600:Lio/netty/buffer/ByteBuf;
      named valueBuffer Lnet/minecraft/util/profiler/Sampler;valueBuffer:Lio/netty/buffer/ByteBuf;
    • active

      private volatile boolean active
      Mappings:
      Namespace Name Mixin selector
      official g Latf;g:Z
      intermediary field_29601 Lnet/minecraft/class_5965;field_29601:Z
      named active Lnet/minecraft/util/profiler/Sampler;active:Z
    • startAction

      @Nullable private final @Nullable Runnable startAction
      Mappings:
      Namespace Name Mixin selector
      official h Latf;h:Ljava/lang/Runnable;
      intermediary field_29602 Lnet/minecraft/class_5965;field_29602:Ljava/lang/Runnable;
      named startAction Lnet/minecraft/util/profiler/Sampler;startAction:Ljava/lang/Runnable;
    • deviationChecker

      Mappings:
      Namespace Name Mixin selector
      official a Latf;a:Latf$c;
      intermediary field_29603 Lnet/minecraft/class_5965;field_29603:Lnet/minecraft/class_5965$class_5967;
      named deviationChecker Lnet/minecraft/util/profiler/Sampler;deviationChecker:Lnet/minecraft/util/profiler/Sampler$DeviationChecker;
    • currentSample

      private double currentSample
      Mappings:
      Namespace Name Mixin selector
      official i Latf;i:D
      intermediary field_33884 Lnet/minecraft/class_5965;field_33884:D
      named currentSample Lnet/minecraft/util/profiler/Sampler;currentSample:D
  • Constructor Details

    • Sampler

      protected Sampler(String name, SampleType type, DoubleSupplier retriever, @Nullable @Nullable Runnable startAction, @Nullable @Nullable Sampler.DeviationChecker deviationChecker)
      Mappings:
      Namespace Name Mixin selector
      official <init> Latf;<init>(Ljava/lang/String;Late;Ljava/util/function/DoubleSupplier;Ljava/lang/Runnable;Latf$c;)V
      intermediary <init> Lnet/minecraft/class_5965;<init>(Ljava/lang/String;Lnet/minecraft/class_5949;Ljava/util/function/DoubleSupplier;Ljava/lang/Runnable;Lnet/minecraft/class_5965$class_5967;)V
      named <init> Lnet/minecraft/util/profiler/Sampler;<init>(Ljava/lang/String;Lnet/minecraft/util/profiler/SampleType;Ljava/util/function/DoubleSupplier;Ljava/lang/Runnable;Lnet/minecraft/util/profiler/Sampler$DeviationChecker;)V
  • Method Details

    • create

      public static Sampler create(String name, SampleType type, DoubleSupplier retriever)
      Mappings:
      Namespace Name Mixin selector
      official a Latf;a(Ljava/lang/String;Late;Ljava/util/function/DoubleSupplier;)Latf;
      intermediary method_34776 Lnet/minecraft/class_5965;method_34776(Ljava/lang/String;Lnet/minecraft/class_5949;Ljava/util/function/DoubleSupplier;)Lnet/minecraft/class_5965;
      named create Lnet/minecraft/util/profiler/Sampler;create(Ljava/lang/String;Lnet/minecraft/util/profiler/SampleType;Ljava/util/function/DoubleSupplier;)Lnet/minecraft/util/profiler/Sampler;
    • create

      public static <T> Sampler create(String name, SampleType type, T context, ToDoubleFunction<T> retriever)
      Mappings:
      Namespace Name Mixin selector
      official a Latf;a(Ljava/lang/String;Late;Ljava/lang/Object;Ljava/util/function/ToDoubleFunction;)Latf;
      intermediary method_34778 Lnet/minecraft/class_5965;method_34778(Ljava/lang/String;Lnet/minecraft/class_5949;Ljava/lang/Object;Ljava/util/function/ToDoubleFunction;)Lnet/minecraft/class_5965;
      named create Lnet/minecraft/util/profiler/Sampler;create(Ljava/lang/String;Lnet/minecraft/util/profiler/SampleType;Ljava/lang/Object;Ljava/util/function/ToDoubleFunction;)Lnet/minecraft/util/profiler/Sampler;
    • builder

      public static <T> Sampler.Builder<T> builder(String name, SampleType type, ToDoubleFunction<T> retriever, T context)
      Mappings:
      Namespace Name Mixin selector
      official a Latf;a(Ljava/lang/String;Late;Ljava/util/function/ToDoubleFunction;Ljava/lang/Object;)Latf$a;
      intermediary method_34779 Lnet/minecraft/class_5965;method_34779(Ljava/lang/String;Lnet/minecraft/class_5949;Ljava/util/function/ToDoubleFunction;Ljava/lang/Object;)Lnet/minecraft/class_5965$class_5966;
      named builder Lnet/minecraft/util/profiler/Sampler;builder(Ljava/lang/String;Lnet/minecraft/util/profiler/SampleType;Ljava/util/function/ToDoubleFunction;Ljava/lang/Object;)Lnet/minecraft/util/profiler/Sampler$Builder;
    • start

      public void start()
      Mappings:
      Namespace Name Mixin selector
      official a Latf;a()V
      intermediary method_34780 Lnet/minecraft/class_5965;method_34780()V
      named start Lnet/minecraft/util/profiler/Sampler;start()V
    • sample

      public void sample(int tick)
      Mappings:
      Namespace Name Mixin selector
      official a Latf;a(I)V
      intermediary method_34781 Lnet/minecraft/class_5965;method_34781(I)V
      named sample Lnet/minecraft/util/profiler/Sampler;sample(I)V
    • stop

      public void stop()
      Mappings:
      Namespace Name Mixin selector
      official b Latf;b()V
      intermediary method_34782 Lnet/minecraft/class_5965;method_34782()V
      named stop Lnet/minecraft/util/profiler/Sampler;stop()V
    • ensureActive

      private void ensureActive()
      Mappings:
      Namespace Name Mixin selector
      official h Latf;h()V
      intermediary method_34786 Lnet/minecraft/class_5965;method_34786()V
      named ensureActive Lnet/minecraft/util/profiler/Sampler;ensureActive()V
    • getRetriever

      DoubleSupplier getRetriever()
      Mappings:
      Namespace Name Mixin selector
      official c Latf;c()Ljava/util/function/DoubleSupplier;
      intermediary method_37170 Lnet/minecraft/class_5965;method_37170()Ljava/util/function/DoubleSupplier;
      named getRetriever Lnet/minecraft/util/profiler/Sampler;getRetriever()Ljava/util/function/DoubleSupplier;
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official d Latf;d()Ljava/lang/String;
      intermediary method_37171 Lnet/minecraft/class_5965;method_37171()Ljava/lang/String;
      named getName Lnet/minecraft/util/profiler/Sampler;getName()Ljava/lang/String;
    • getType

      public SampleType getType()
      Mappings:
      Namespace Name Mixin selector
      official e Latf;e()Late;
      intermediary method_37172 Lnet/minecraft/class_5965;method_37172()Lnet/minecraft/class_5949;
      named getType Lnet/minecraft/util/profiler/Sampler;getType()Lnet/minecraft/util/profiler/SampleType;
    • collectData

      public Sampler.Data collectData()
      Mappings:
      Namespace Name Mixin selector
      official f Latf;f()Latf$b;
      intermediary method_37173 Lnet/minecraft/class_5965;method_37173()Lnet/minecraft/class_5965$class_6398;
      named collectData Lnet/minecraft/util/profiler/Sampler;collectData()Lnet/minecraft/util/profiler/Sampler$Data;
    • hasDeviated

      public boolean hasDeviated()
      Mappings:
      Namespace Name Mixin selector
      official g Latf;g()Z
      intermediary method_37174 Lnet/minecraft/class_5965;method_37174()Z
      named hasDeviated Lnet/minecraft/util/profiler/Sampler;hasDeviated()Z
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Latf;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_5965;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/util/profiler/Sampler;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object