public class Profiler extends java.lang.Object implements IResultableProfiler
Constructor and Description |
---|
Profiler(long time,
java.util.function.IntSupplier currentTicks) |
Modifier and Type | Method and Description |
---|---|
void |
endSection() |
void |
endStartSection(java.lang.String name) |
void |
endStartSection(java.util.function.Supplier<java.lang.String> nameSupplier) |
void |
endTick() |
IProfileResult |
getResults() |
void |
startSection(java.lang.String name) |
void |
startSection(java.util.function.Supplier<java.lang.String> nameSupplier) |
void |
startTick() |
public void startSection(java.lang.String name)
startSection
in interface IProfiler
startSection
in interface IResultableProfiler
public void startSection(java.util.function.Supplier<java.lang.String> nameSupplier)
startSection
in interface IProfiler
startSection
in interface IResultableProfiler
public void endSection()
endSection
in interface IProfiler
endSection
in interface IResultableProfiler
public void endStartSection(java.lang.String name)
endStartSection
in interface IProfiler
endStartSection
in interface IResultableProfiler
public void endStartSection(java.util.function.Supplier<java.lang.String> nameSupplier)
endStartSection
in interface IProfiler
endStartSection
in interface IResultableProfiler
public IProfileResult getResults()
getResults
in interface IResultableProfiler