Summary

Public methods

Writes a trace message to indicate that a given section of code has ended.

Inherited methods

From class
java.lang.Object

Object

clone()

boolean

equals(Object arg0)

void

finalize()

final
Class<?>

getClass()

int

hashCode()

final
void

notify()

final
void

notifyAll()

String

toString()

final
void

wait(long arg0, int arg1)

final
void

wait(long arg0)

final
void

wait()

Public methods

beginSection

public static void beginSection (String sectionName)

Writes a trace message to indicate that a given section of code has begun. This call must
be followed by a corresponding call to endSection() on the same thread.

At this time the vertical bar character '|', newline character '\n', and
null character '\0' are used internally by the tracing mechanism. If sectionName contains
these characters they will be replaced with a space character in the trace.

Parameters

sectionName

String: The name of the code section to appear in the trace. This may be at
most 127 Unicode code units long.

endSection

public static void endSection ()

Writes a trace message to indicate that a given section of code has ended. This call must
be preceeded by a corresponding call to beginSection(String). Calling this method
will mark the end of the most recently begun section of code, so care must be taken to
ensure that beginSection / endSection pairs are properly nested and called from the same
thread.