Package net.minecraft.util.profiler
Class Sampler
java.lang.Object
net.minecraft.util.profiler.Sampler
- Direct Known Subclasses:
ExecutorSampling.MergedSampler
- Mappings:
Namespace Name official bet
intermediary net/minecraft/class_5965
named net/minecraft/util/profiler/Sampler
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static interface
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private double
(package private) final @Nullable Sampler.DeviationChecker
private final String
private final DoubleSupplier
private final @Nullable Runnable
private final ByteBuf
private final SampleType
private final ByteBuf
-
Constructor Summary
ModifierConstructorDescriptionprotected
Sampler
(String name, SampleType type, DoubleSupplier retriever, @Nullable Runnable startAction, @Nullable Sampler.DeviationChecker deviationChecker) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Sampler.Builder<T>
builder
(String name, SampleType type, ToDoubleFunction<T> retriever, T context) static Sampler
create
(String name, SampleType type, DoubleSupplier retriever) static <T> Sampler
create
(String name, SampleType type, T context, ToDoubleFunction<T> retriever) private void
boolean
getName()
(package private) DoubleSupplier
getType()
boolean
int
hashCode()
void
sample
(int tick) void
start()
void
stop()
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector official b
Lbet;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
- Mappings:
Namespace Name Mixin selector official c
Lbet;c:Lbes;
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
- Mappings:
Namespace Name Mixin selector official d
Lbet;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
- Mappings:
Namespace Name Mixin selector official e
Lbet;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
- Mappings:
Namespace Name Mixin selector official f
Lbet;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
Lbet;g:Z
intermediary field_29601
Lnet/minecraft/class_5965;field_29601:Z
named active
Lnet/minecraft/util/profiler/Sampler;active:Z
-
startAction
- Mappings:
Namespace Name Mixin selector official h
Lbet;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
Lbet;a:Lbet$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
Lbet;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>
Lbet;<init>(Ljava/lang/String;Lbes;Ljava/util/function/DoubleSupplier;Ljava/lang/Runnable;Lbet$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
- Mappings:
Namespace Name Mixin selector official a
Lbet;a(Ljava/lang/String;Lbes;Ljava/util/function/DoubleSupplier;)Lbet;
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
Lbet;a(Ljava/lang/String;Lbes;Ljava/lang/Object;Ljava/util/function/ToDoubleFunction;)Lbet;
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
Lbet;a(Ljava/lang/String;Lbes;Ljava/util/function/ToDoubleFunction;Ljava/lang/Object;)Lbet$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
Lbet;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
Lbet;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
Lbet;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
Lbet;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
Lbet;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
- Mappings:
Namespace Name Mixin selector official d
Lbet;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
- Mappings:
Namespace Name Mixin selector official e
Lbet;e()Lbes;
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
- Mappings:
Namespace Name Mixin selector official f
Lbet;f()Lbet$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
Lbet;g()Z
intermediary method_37174
Lnet/minecraft/class_5965;method_37174()Z
named hasDeviated
Lnet/minecraft/util/profiler/Sampler;hasDeviated()Z
-
equals
-
hashCode
public int hashCode()
-