Package org.sonar.api.utils.log
Class Profiler
- java.lang.Object
-
- org.sonar.api.utils.log.Profiler
-
public abstract class Profiler extends java.lang.Object
- Since:
- 5.1
-
-
Constructor Summary
Constructors Constructor Description Profiler()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Profiler
addContext(java.lang.String key, java.lang.Object value)
Context information is removed if value isnull
.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)
-
-
-
Method Detail
-
isDebugEnabled
public abstract boolean isDebugEnabled()
-
isTraceEnabled
public abstract boolean isTraceEnabled()
-
start
public abstract Profiler start()
-
startTrace
public abstract Profiler startTrace(java.lang.String message)
-
startDebug
public abstract Profiler startDebug(java.lang.String message)
-
startInfo
public abstract Profiler startInfo(java.lang.String message)
-
stopTrace
public abstract Profiler stopTrace()
Works only if a message have been set in startXXX() methods.
-
stopDebug
public abstract Profiler stopDebug()
-
stopInfo
public abstract Profiler stopInfo()
-
stopInfo
public abstract Profiler stopInfo(boolean cacheUsed)
-
stopTrace
public abstract Profiler stopTrace(java.lang.String message)
-
stopDebug
public abstract Profiler stopDebug(java.lang.String message)
-
stopInfo
public abstract Profiler stopInfo(java.lang.String message)
-
addContext
public abstract Profiler addContext(java.lang.String key, @Nullable java.lang.Object value)
Context information is removed if value isnull
.
-
-