net.minecraft.util.profiler

public class DebugRecorder

implements Recorder

net.minecraft.util.profiling.metrics.profiling.ActiveMetricsRecorder
net.minecraft.class_5961
net.minecraft.util.profiler.DebugRecorder

Field summary

Modifier and TypeField
public static final int
PROFILING_MAX_DURATION_SECONDS
field_32676
MAX_DURATION_IN_SECONDS
private static Consumer<Path>
globalOnReportFinished
field_29579
globalDumpConsumer
private final Map<Sampler, List<Deviation>>
deviationsBySampler
field_33891
deviations
private final TickTimeTracker
taskProfiler
field_29581
timeTracker
private final Executor
ioExecutor
field_29582
dumpExecutor
private final RecordDumper
metricsPersister
field_29583
dumper
private final Consumer<ProfileResult>
onProfilingEnd
field_29584
resultConsumer
private final Consumer<Path>
onReportFinished
field_29585
dumpConsumer
private final SamplerSource
metricsSamplerProvider
field_33892
samplerSource
private final LongSupplier
wallTimeSource
field_29586
timeGetter
private final long
deadlineNano
field_29588
endTime
private int
currentTick
field_29589
ticks
private ReadableProfiler
singleTickProfiler
field_29590
profiler
private volatile boolean
killSwitch
field_29591
stopping
private Set<Sampler>
thisTickSamplers
field_33893
samplers

Constructor summary

ModifierConstructor
private (SamplerSource samplerSource, LongSupplier timeGetter, Executor dumpExecutor, RecordDumper dumper, Consumer<ProfileResult> resultConsumer, Consumer<Path> dumpConsumer)

Method summary

Modifier and TypeMethod
public static DebugRecorder
createStarted(MetricsSamplerProvider metricsSamplerProvider, LongSupplier timeSource, Executor ioExecutor, MetricsPersister metricsPersister, Consumer<ProfileResults> onProfilingEnd, Consumer<Path> onReportFinished)
method_37191(class_6400 arg0, LongSupplier arg1, Executor arg2, class_5971 arg3, Consumer<class_3696> arg4, Consumer<Path> arg5)
of(SamplerSource source, LongSupplier timeGetter, Executor dumpExecutor, RecordDumper dumper, Consumer<ProfileResult> resultConsumer, Consumer<Path> dumpConsumer)
public synchronized void
end()
method_34770()
stop()
public synchronized void
cancel()
method_41320()
forceStop()
public void
startTick()
method_34771()
startTick()
public void
endTick()
method_34772()
endTick()
public boolean
isRecording()
method_34773()
isActive()
public Profiler
getProfiler()
method_34774()
getProfiler()
private void
verifyStarted()
method_34762()
checkState()
private void
scheduleSaveResults(ProfileResults profilerResults)
method_34763(class_3696 arg0)
dump(ProfileResult result)
private void
cleanup(Collection<MetricSampler> metricSamplers)
method_41319(Collection<class_5965> arg0)
forceStop(Collection<Sampler> samplers)
public static void
registerGlobalCompletionCallback(Consumer<Path> onFinished)
method_35762(Consumer<Path> arg0)
setGlobalDumpConsumer(Consumer<Path> consumer)
private void
lambda$scheduleSaveResults$8(HashSet arg0, ProfileResults arg1)
method_37192(HashSet arg0, class_3696 arg1)
method_37192(HashSet arg0, ProfileResult arg1)
private static boolean
lambda$endTick$7()
method_66208()
method_66208()
private int
lambda$endTick$6()
method_34765()
method_34765()
private static List
lambda$endTick$5(MetricSampler arg0)
method_37190(class_5965 arg0)
method_37190(Sampler s)
private ReadableProfiler
lambda$startTick$4()
method_37193()
method_37193()
private static boolean
lambda$new$3()
method_66209()
method_66209()
private int
lambda$new$2()
method_34768()
method_34768()
private static boolean
lambda$new$1()
method_66210()
method_66210()
private int
lambda$new$0()
method_34769()
method_34769()