public class Profiler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Profiler.Result |
Modifier and Type | Field and Description |
---|---|
boolean |
profilingEnabled
Flag profiling enabled
|
Constructor and Description |
---|
Profiler() |
Modifier and Type | Method and Description |
---|---|
void |
clearProfiling()
Clear profiling.
|
void |
endSection()
End section
|
void |
endStartSection(java.lang.String name)
End current section and start a new section
|
java.lang.String |
getNameOfLastSection() |
java.util.List<Profiler.Result> |
getProfilingData(java.lang.String profilerName)
Get profiling data
|
void |
startSection(java.lang.Class<?> profiledClass)
Forge: Fix for MC-117087, World.updateEntities is wasting time calling Class.getSimpleName() when the profiler is not active
|
void |
startSection(java.lang.String name)
Start section
|
public void clearProfiling()
public void startSection(java.lang.String name)
public void endSection()
public java.util.List<Profiler.Result> getProfilingData(java.lang.String profilerName)
public void endStartSection(java.lang.String name)
public java.lang.String getNameOfLastSection()
public void startSection(java.lang.Class<?> profiledClass)