public class Profiler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Profiler.Result |
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
LOGGER |
boolean |
profilingEnabled |
private java.util.Map<java.lang.String,java.lang.Long> |
profilingMap |
private java.lang.String |
profilingSection |
private java.util.List<java.lang.String> |
sectionList |
private java.util.List<java.lang.Long> |
timestampList |
Constructor and Description |
---|
Profiler() |
Modifier and Type | Method and Description |
---|---|
void |
clearProfiling() |
void |
endSection() |
void |
endStartSection(java.lang.String name) |
void |
func_194339_b(java.util.function.Supplier<java.lang.String> p_194339_1_) |
void |
func_194340_a(java.util.function.Supplier<java.lang.String> p_194340_1_) |
java.lang.String |
getNameOfLastSection() |
java.util.List<Profiler.Result> |
getProfilingData(java.lang.String profilerName) |
void |
startSection(java.lang.Class<?> profiledClass)
Deprecated.
|
void |
startSection(java.lang.String name) |
private static final org.apache.logging.log4j.Logger LOGGER
private final java.util.List<java.lang.String> sectionList
private final java.util.List<java.lang.Long> timestampList
public boolean profilingEnabled
private java.lang.String profilingSection
private final java.util.Map<java.lang.String,java.lang.Long> profilingMap
public void clearProfiling()
public void startSection(java.lang.String name)
public void func_194340_a(java.util.function.Supplier<java.lang.String> p_194340_1_)
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 func_194339_b(java.util.function.Supplier<java.lang.String> p_194339_1_)
@Deprecated public void startSection(java.lang.Class<?> profiledClass)