Runtime.traceInstructions(boolean on) has the following syntax.
public void traceInstructions(boolean on)
In the following code shows how to use Runtime.traceInstructions(boolean on) method.
//from w ww . j a va2s . c o m public class Main { public static void main(String[] args) { // start tracing for instructions Runtime.getRuntime().traceMethodCalls(true); } }