com.duowan.mobile.netroid
Class NetroidLog.MarkerLog

java.lang.Object
  extended by com.duowan.mobile.netroid.NetroidLog.MarkerLog
Enclosing class:
NetroidLog

static class NetroidLog.MarkerLog
extends java.lang.Object

A simple event log with records containing a name, thread ID, and timestamp.


Field Summary
static boolean ENABLED
           
 
Constructor Summary
NetroidLog.MarkerLog()
           
 
Method Summary
 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.
 
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

NetroidLog.MarkerLog

NetroidLog.MarkerLog()
Method Detail

add

public void add(java.lang.String name,
                long threadId)
Adds a marker to this log with the specified name.


finish

public 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.

Parameters:
header - Header string to print above the marker log.

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable