net.minecraft.util.profiling.metrics

public class MetricSampler

brc
net.minecraft.util.profiling.metrics.MetricSampler
net.minecraft.class_5965
net.minecraft.util.profiler.Sampler
net.minecraft.util.profiling.metrics.MetricSampler

Field summary

Modifier and TypeField
private final String
b
name
field_33882
name
private final MetricCategory
c
category
field_29598
type
private final DoubleSupplier
d
sampler
field_29599
retriever
private final io.netty.buffer.ByteBuf
e
ticks
field_33883
ticksBuffer
private final io.netty.buffer.ByteBuf
f
values
field_29600
valueBuffer
private volatile boolean
g
isRunning
field_29601
active
private final Runnable
h
beforeTick
field_29602
startAction
final MetricSampler$ThresholdTest
a
thresholdTest
field_29603
deviationChecker
private double
i
currentValue
field_33884
currentSample

Constructor summary

ModifierConstructor
protected (String name, MetricCategory type, DoubleSupplier retriever, Runnable startAction, MetricSampler$ThresholdTest deviationChecker)

Method summary

Modifier and TypeMethod
public static MetricSampler
a(String arg0, brb arg1, DoubleSupplier arg2)
create(String arg0, MetricCategory arg1, DoubleSupplier arg2)
method_34776(String arg0, class_5949 arg1, DoubleSupplier arg2)
create(String name, SampleType type, DoubleSupplier retriever)
public static <T> MetricSampler
a(String arg0, brb arg1, T arg2, ToDoubleFunction<T> arg3)
create(String arg0, MetricCategory arg1, T arg2, ToDoubleFunction<T> arg3)
method_34778(String arg0, class_5949 arg1, T arg2, ToDoubleFunction<T> arg3)
create(String name, SampleType type, T context, ToDoubleFunction<T> retriever)
public static <T> MetricSampler$MetricSamplerBuilder<T>
a(String arg0, brb arg1, ToDoubleFunction<T> arg2, T arg3)
builder(String arg0, MetricCategory arg1, ToDoubleFunction<T> arg2, T arg3)
method_34779(String arg0, class_5949 arg1, ToDoubleFunction<T> arg2, T arg3)
builder(String name, SampleType type, ToDoubleFunction<T> retriever, T context)
public void
a()
onStartTick()
method_34780()
start()
public void
a(int arg0)
onEndTick(int arg0)
method_34781(int arg0)
sample(int tick)
public void
b()
onFinished()
method_34782()
stop()
private void
h()
verifyRunning()
method_34786()
ensureActive()
DoubleSupplier
c()
getSampler()
method_37170()
getRetriever()
public String
d()
getName()
method_37171()
getName()
public MetricCategory
e()
getCategory()
method_37172()
getType()
public MetricSampler$SamplerResult
f()
result()
method_37173()
collectData()
public boolean
g()
triggersThreshold()
method_37174()
hasDeviated()