Constructor and Description |
---|
Profiler() |
Modifier and Type | Method and Description |
---|---|
abstract Profiler |
addContext(String key,
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(String message) |
abstract Profiler |
startInfo(String message) |
abstract Profiler |
startTrace(String message) |
abstract Profiler |
stopDebug() |
abstract Profiler |
stopDebug(String message) |
abstract Profiler |
stopInfo() |
abstract Profiler |
stopInfo(boolean cacheUsed) |
abstract Profiler |
stopInfo(String message) |
abstract Profiler |
stopTrace()
Works only if a message have been set in startXXX() methods.
|
abstract Profiler |
stopTrace(String message) |
public Profiler()
public static Profiler createIfTrace(Logger logger)
public static Profiler createIfDebug(Logger logger)
public abstract boolean isDebugEnabled()
public abstract boolean isTraceEnabled()
public abstract Profiler startTrace(String message)
public abstract Profiler startDebug(String message)
public abstract Profiler stopTrace()
public abstract Profiler addContext(String key, @Nullable Object value)
null
.Copyright © 2009–2016 SonarSource. All rights reserved.