java.lang.Object | |
↳ | android.os.Debug.InstructionCount |
This class was deprecated
in API level 23.
Instruction counting is no longer supported.
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()); }
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Collect instruction counts.
| |||||||||||
Return the total number of method-invocation instructions
executed globally.
| |||||||||||
Return the total number of instructions executed globally (i.e.
| |||||||||||
Reset counters and ensure counts are running.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Collect instruction counts. May or may not stop the counting process.
Return the total number of method-invocation instructions executed globally.
Return the total number of instructions executed globally (i.e. in all threads).
Reset counters and ensure counts are running. Counts may have already been running.