public interface DebugConfig
| Modifier and Type | Method and Description |
|---|---|
static JavaMethod |
asJavaMethod(Object context)
Extracts a
JavaMethod from an opaque debug context. |
default void |
closeDumpHandlers(boolean ignoreErrors) |
Collection<DebugDumpHandler> |
dumpHandlers()
Gets an unmodifiable view of the dump handlers registered with this configuration.
|
int |
getDumpLevel(DebugContext.Scope scope)
Determines the current dump level in
scope. |
int |
getLogLevel(DebugContext.Scope scope)
Determines the current log level in
scope. |
OptionValues |
getOptions()
Returns the option values used to configure this object.
|
RuntimeException |
interceptException(DebugContext debug,
Throwable e)
Handles notification of an exception occurring within a debug scope.
|
boolean |
isCountEnabled(DebugContext.Scope scope)
Determines if counting is enabled in
scope. |
boolean |
isDumpEnabledForMethod(DebugContext.Scope scope)
|
boolean |
isLogEnabledForMethod(DebugContext.Scope scope)
|
boolean |
isMemUseTrackingEnabled(DebugContext.Scope scope)
Determines if memory use tracking is
scope. |
boolean |
isTimeEnabled(DebugContext.Scope scope) |
boolean |
isVerifyEnabled(DebugContext.Scope scope) |
boolean |
isVerifyEnabledForMethod(DebugContext.Scope scope) |
PrintStream |
output()
Gets the
PrintStream for logging. |
Collection<DebugVerifyHandler> |
verifyHandlers()
Gets an unmodifiable view of the verify handlers registered with this configuration.
|
OptionValues getOptions()
int getLogLevel(DebugContext.Scope scope)
scope.int getDumpLevel(DebugContext.Scope scope)
scope.boolean isLogEnabledForMethod(DebugContext.Scope scope)
boolean isCountEnabled(DebugContext.Scope scope)
scope.DebugContext.counter(CharSequence)boolean isMemUseTrackingEnabled(DebugContext.Scope scope)
scope.DebugContext.memUseTracker(CharSequence)boolean isDumpEnabledForMethod(DebugContext.Scope scope)
boolean isVerifyEnabled(DebugContext.Scope scope)
DebugContext.isVerifyEnabled()boolean isVerifyEnabledForMethod(DebugContext.Scope scope)
DebugContext.isVerifyEnabledForMethod()boolean isTimeEnabled(DebugContext.Scope scope)
DebugContext.timer(CharSequence)RuntimeException interceptException(DebugContext debug, Throwable e)
null indicates that e is to be propagated.Collection<DebugDumpHandler> dumpHandlers()
PrintStream output()
PrintStream for logging.Collection<DebugVerifyHandler> verifyHandlers()
default void closeDumpHandlers(boolean ignoreErrors)
static JavaMethod asJavaMethod(Object context)
JavaMethod from an opaque debug context.JavaMethod represented by context or null