# Print output for @column tags ?>
public
static
class
Debug.InstructionCount
extends Object
| java.lang.Object | |
| ↳ | android.os.Debug.InstructionCount |
This class is deprecated.
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 | |
|---|---|
InstructionCount()
|
|
Public methods | |
|---|---|
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. |
Inherited methods | |
|---|---|
public InstructionCount ()
public boolean collect ()
Collect instruction counts. May or may not stop the counting process.
| Returns | |
|---|---|
boolean |
|
public int globalMethodInvocations ()
Return the total number of method-invocation instructions executed globally.
| Returns | |
|---|---|
int |
|
public int globalTotal ()
Return the total number of instructions executed globally (i.e. in all threads).
| Returns | |
|---|---|
int |
|
public boolean resetAndStart ()
Reset counters and ensure counts are running. Counts may have already been running.
| Returns | |
|---|---|
boolean |
true if counting was started |