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 ProfileraddContext(java.lang.String key, java.lang.Object value)Context information is removed if value isnull.static Profilercreate(Logger logger)static ProfilercreateIfDebug(Logger logger)static ProfilercreateIfTrace(Logger logger)abstract booleanisDebugEnabled()abstract booleanisTraceEnabled()abstract Profilerstart()abstract ProfilerstartDebug(java.lang.String message)abstract ProfilerstartInfo(java.lang.String message)abstract ProfilerstartTrace(java.lang.String message)abstract ProfilerstopDebug()abstract ProfilerstopDebug(java.lang.String message)abstract ProfilerstopInfo()abstract ProfilerstopInfo(boolean cacheUsed)abstract ProfilerstopInfo(java.lang.String message)abstract ProfilerstopTrace()Works only if a message have been set in startXXX() methods.abstract ProfilerstopTrace(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.
-
-