Package net.minecraft.profiler
Class LongTickDetector
- java.lang.Object
-
- net.minecraft.profiler.LongTickDetector
-
public class LongTickDetector extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
location
private static org.apache.logging.log4j.Logger
LOGGER
private IResultableProfiler
profiler
private java.util.function.LongSupplier
realTime
private long
saveThreshold
private int
tick
-
Constructor Summary
Constructors Modifier Constructor Description private
LongTickDetector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LongTickDetector
createTickProfiler(java.lang.String p_233524_0_)
static IProfiler
decorateFiller(IProfiler p_233523_0_, LongTickDetector p_233523_1_)
void
endTick()
IProfiler
startTick()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
realTime
private final java.util.function.LongSupplier realTime
-
saveThreshold
private final long saveThreshold
- See Also:
- Constant Field Values
-
tick
private int tick
-
location
private final java.io.File location
-
profiler
private IResultableProfiler profiler
-
-
Method Detail
-
startTick
public IProfiler startTick()
-
endTick
public void endTick()
-
createTickProfiler
@Nullable public static LongTickDetector createTickProfiler(java.lang.String p_233524_0_)
-
decorateFiller
public static IProfiler decorateFiller(IProfiler p_233523_0_, @Nullable LongTickDetector p_233523_1_)
-
-