net.minecraft.util.profiling.metrics

public class MetricSampler

aqa
net.minecraft.util.profiling.metrics.MetricSampler
net.minecraft.class_5965
net.minecraft.util.profiler.Sampler
net.minecraft.src.C_141012_
net.minecraft.util.profiling.metrics.MetricSampler

Field summary

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

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, apz 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)
m_146009_(String p_146010_, C_141011_ p_146011_, DoubleSupplier p_146012_)
public static <T> MetricSampler
a(String arg0, apz 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)
m_146004_(String p_146005_, C_141011_ p_146006_, T p_146007_, ToDoubleFunction<T> p_146008_)
public static <T> MetricSampler$MetricSamplerBuilder<T>
a(String arg0, apz 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)
m_146013_(String p_146014_, C_141011_ p_146015_, ToDoubleFunction<T> p_146016_, T p_146017_)
public void
a()
onStartTick()
method_34780()
start()
m_146001_()
public void
a(int arg0)
onEndTick(int arg0)
method_34781(int arg0)
sample(int tick)
m_146002_(int arg0)
public void
b()
onFinished()
method_34782()
stop()
m_146018_()
private void
h()
verifyRunning()
method_34786()
ensureActive()
m_146026_()
DoubleSupplier
c()
getSampler()
method_37170()
getRetriever()
m_146019_()
public String
d()
getName()
method_37171()
getName()
m_146020_()
public MetricCategory
e()
getCategory()
method_37172()
getType()
m_146021_()
public MetricSampler$SamplerResult
f()
result()
method_37173()
collectData()
m_146024_()
public boolean
g()
triggersThreshold()
method_37174()
hasDeviated()
m_146025_()