public class TickDurationMonitor extends Object
Modifier and Type | Field and Description |
---|---|
private static Logger |
LOGGER |
private long |
overtime |
private ReadableProfiler |
profiler |
private int |
tickCount |
private File |
tickResultsDirectory |
private LongSupplier |
timeGetter |
Constructor and Description |
---|
TickDurationMonitor() |
Modifier and Type | Method and Description |
---|---|
static TickDurationMonitor |
create(String name) |
void |
endTick() |
Profiler |
nextProfiler() |
static Profiler |
tickProfiler(Profiler profiler,
TickDurationMonitor monitor) |
private static final Logger LOGGER
private final LongSupplier timeGetter
private final long overtime
private int tickCount
private final File tickResultsDirectory
private ReadableProfiler profiler
public Profiler nextProfiler()
public void endTick()
@Nullable public static TickDurationMonitor create(String name)
public static Profiler tickProfiler(Profiler profiler, @Nullable TickDurationMonitor monitor)