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 IProfilerstartSection in interface IResultableProfilerpublic void startSection(java.util.function.Supplier<java.lang.String> nameSupplier)
startSection in interface IProfilerstartSection in interface IResultableProfilerpublic void endSection()
endSection in interface IProfilerendSection in interface IResultableProfilerpublic void endStartSection(java.lang.String name)
endStartSection in interface IProfilerendStartSection in interface IResultableProfilerpublic void endStartSection(java.util.function.Supplier<java.lang.String> nameSupplier)
endStartSection in interface IProfilerendStartSection in interface IResultableProfilerpublic IProfileResult getResults()
getResults in interface IResultableProfiler