public interface CallStack
CallStackUtils
限定符和类型 | 方法和说明 |
---|---|
void |
clear()
Clears the current stack trace snapshot.
|
void |
fillInStackTrace()
Takes a snapshot of the current call stack.
|
boolean |
printStackTrace(java.io.PrintWriter writer)
Prints the current stack trace if available to a PrintWriter.
|
void clear()
printStackTrace(PrintWriter)
will be
no-ops until another call to fillInStackTrace()
.void fillInStackTrace()
printStackTrace(PrintWriter)
will print
out that stack trace until it is cleared.boolean printStackTrace(java.io.PrintWriter writer)
PooledObject
usage in user code.writer
- a PrintWriter to write the current stack trace to if available