public abstract class Profiler
extends java.lang.Object
Constructor and Description |
---|
Profiler() |
Modifier and Type | Method and Description |
---|---|
abstract Profiler |
addContext(java.lang.String key,
java.lang.Object value)
Context information is removed if value is
null . |
static Profiler |
create(Logger logger) |
static Profiler |
createIfDebug(Logger logger) |
static Profiler |
createIfTrace(Logger logger) |
abstract boolean |
isDebugEnabled() |
abstract boolean |
isTraceEnabled() |
abstract Profiler |
start() |
abstract Profiler |
startDebug(java.lang.String message) |
abstract Profiler |
startInfo(java.lang.String message) |
abstract Profiler |
startTrace(java.lang.String message) |
abstract Profiler |
stopDebug() |
abstract Profiler |
stopDebug(java.lang.String message) |
abstract Profiler |
stopInfo() |
abstract Profiler |
stopInfo(boolean cacheUsed) |
abstract Profiler |
stopInfo(java.lang.String message) |
abstract Profiler |
stopTrace()
Works only if a message have been set in startXXX() methods.
|
abstract Profiler |
stopTrace(java.lang.String message) |
public abstract boolean isDebugEnabled()
public abstract boolean isTraceEnabled()
public abstract Profiler start()
public abstract Profiler startTrace(java.lang.String message)
public abstract Profiler startDebug(java.lang.String message)
public abstract Profiler startInfo(java.lang.String message)
public abstract Profiler stopTrace()
public abstract Profiler stopDebug()
public abstract Profiler stopInfo()
public abstract Profiler stopInfo(boolean cacheUsed)
public abstract Profiler stopTrace(java.lang.String message)
public abstract Profiler stopDebug(java.lang.String message)
public abstract Profiler stopInfo(java.lang.String message)
public abstract Profiler addContext(java.lang.String key, @Nullable java.lang.Object value)
null
.