@Deprecated public static class Debug.InstructionCount extends Object
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 and Description |
---|
InstructionCount()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
collect()
Deprecated.
Collect instruction counts.
|
int |
globalMethodInvocations()
Deprecated.
Return the total number of method-invocation instructions
executed globally.
|
int |
globalTotal()
Deprecated.
Return the total number of instructions executed globally (i.e. in
all threads).
|
boolean |
resetAndStart()
Deprecated.
Reset counters and ensure counts are running.
|
public boolean resetAndStart()
public boolean collect()
public int globalTotal()
public int globalMethodInvocations()