static class VolleyLog.MarkerLog
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
VolleyLog.MarkerLog.Marker |
Modifier and Type | Field and Description |
---|---|
static boolean |
ENABLED |
private boolean |
mFinished |
private static long |
MIN_DURATION_FOR_LOGGING_MS
Minimum duration from first marker to last in an marker log to warrant logging.
|
private java.util.List<VolleyLog.MarkerLog.Marker> |
mMarkers |
Constructor and Description |
---|
MarkerLog() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String name,
long threadId)
Adds a marker to this log with the specified name.
|
protected void |
finalize() |
void |
finish(java.lang.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 . |
private long |
getTotalDuration()
Returns the time difference between the first and last events in this log.
|
public static final boolean ENABLED
private static final long MIN_DURATION_FOR_LOGGING_MS
private final java.util.List<VolleyLog.MarkerLog.Marker> mMarkers
private boolean mFinished
public void add(java.lang.String name, long threadId)
public void finish(java.lang.String header)
MIN_DURATION_FOR_LOGGING_MS
.header
- Header string to print above the marker log.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
private long getTotalDuration()