CallStack

Strategy for obtaining and printing the current call stack. This is primarily useful for {@linkplain UsageTracking usage tracking} so that different JVMs and configurations can use more efficient strategies for obtaining the current call stack depending on metadata needs.

@see CallStackUtils

Members

Functions

clear
void clear()

Clears the current stack trace snapshot. Subsequent calls to {@link #printStackTrace(PrintWriter)} will be no-ops until another call to {@link #fillInStackTrace()}.

fillInStackTrace
void fillInStackTrace()

Takes a snapshot of the current call stack. Subsequent calls to {@link #printStackTrace(PrintWriter)} will print out that stack trace until it is {@linkplain #clear() cleared}.

printStackTrace
bool printStackTrace(Writer writer)

Prints the current stack trace if available to a PrintWriter. The format is undefined and is primarily useful for debugging issues with {@link PooledObject} usage in user code.

Meta