|
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.os.Debug.InstructionCount
public static class Debug.InstructionCount
API for gathering and querying instruction counts. Example usage: Debug.InstructionCount icount = new Debug.InstructionCount(); icount.resetAndStart(); [... do lots of stuff ...] if (icount.collect()) { System.out.println("Total instructions executed: " + icount.globalTotal()); System.out.println("Method invocations: " + icount.globalMethodInvocations()); }
| Constructor Summary | |
|---|---|
Debug.InstructionCount()
|
|
| Method Summary | |
|---|---|
boolean |
collect()
Collect instruction counts. |
int |
globalMethodInvocations()
Return the total number of method-invocation instructions executed globally. |
int |
globalTotal()
Return the total number of instructions executed globally (i.e. |
boolean |
resetAndStart()
Reset counters and ensure counts are running. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Debug.InstructionCount()
| Method Detail |
|---|
public boolean resetAndStart()
public boolean collect()
public int globalTotal()
public int globalMethodInvocations()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||