com.android.volley
Class VolleyLog.MarkerLog

java.lang.Object
  extended by 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
           
 
Constructor Summary
VolleyLog.MarkerLog()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENABLED

public static final boolean ENABLED
Constructor Detail

VolleyLog.MarkerLog

VolleyLog.MarkerLog()
Method Detail

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