com.android.volley
Class VolleyLog.MarkerLog
java.lang.Object
com.android.volley.VolleyLog.MarkerLog
- Enclosing class:
- VolleyLog
static class VolleyLog.MarkerLog
- extends Object
A simple event log with records containing a name, thread ID, and timestamp.
Field Summary |
static boolean |
ENABLED
|
Method Summary |
void |
add(String name,
long threadId)
Adds a marker to this log with the specified name. |
protected void |
finalize()
|
void |
finish(String header)
Closes the log, dumping it to logcat if the time difference between
the first and last markers is greater than MIN_DURATION_FOR_LOGGING_MS . |
ENABLED
public static final boolean ENABLED
VolleyLog.MarkerLog
VolleyLog.MarkerLog()
add
public void add(String name,
long threadId)
- Adds a marker to this log with the specified name.
finish
public void finish(String header)
- Closes the log, dumping it to logcat if the time difference between
the first and last markers is greater than
MIN_DURATION_FOR_LOGGING_MS
.
- Parameters:
header
- Header string to print above the marker log.
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable