|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.util.EventLog
public class EventLog
Dynamically defined (in terms of event types), space efficient (i.e. "tight") event logging to help instrument code for large scale stability and performance monitoring. Note that this class contains all static methods. This is done for efficiency reasons. Events for the event log are self-describing binary data structures. They start with a 20 byte header (generated automatically) which contains all of the following in order:
Process.myPid() Process.myTid() INT, LONG, STRING,
or LIST. LIST:
ByteOrder.nativeOrder()).
| Nested Class Summary | |
|---|---|
static class |
EventLog.Event
A previously logged event read from the logs. |
static class |
EventLog.List
An immutable tuple used to log a heterogeneous set of loggable items. |
| Field Summary | |
|---|---|
static byte |
INT
|
static byte |
LIST
|
static byte |
LONG
|
static byte |
STRING
|
| Constructor Summary | |
|---|---|
EventLog()
|
|
| Method Summary | |
|---|---|
static void |
readEvents(int[] tags,
Collection<EventLog.Event> output)
Read events from the log, filtered by type. |
static int |
writeEvent(int tag,
EventLog.List list)
Send an event log message. |
static int |
writeEvent(int tag,
int value)
Send an event log message. |
static int |
writeEvent(int tag,
long value)
Send an event log message. |
static int |
writeEvent(int tag,
Object... list)
Send an event log message. |
static int |
writeEvent(int tag,
String str)
Send an event log message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte INT
public static final byte LONG
public static final byte STRING
public static final byte LIST
| Constructor Detail |
|---|
public EventLog()
| Method Detail |
|---|
public static int writeEvent(int tag,
int value)
tag - An event identifervalue - A value to log
public static int writeEvent(int tag,
long value)
tag - An event identifervalue - A value to log
public static int writeEvent(int tag,
String str)
tag - An event identiferstr - A value to log
public static int writeEvent(int tag,
EventLog.List list)
tag - An event identiferlist - A EventLog.List to log
public static int writeEvent(int tag,
Object... list)
tag - An event identiferlist - A list of values to log
public static void readEvents(int[] tags,
Collection<EventLog.Event> output)
throws IOException
tags - to search foroutput - container to add events into
IOException - if something goes wrong reading events
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||