Java Runtime .traceInstructions ( boolean on)

Syntax

Runtime.traceInstructions(boolean on) has the following syntax.

public void traceInstructions(boolean on)

Example

In the following code shows how to use Runtime.traceInstructions(boolean on) method.


/*from   w ww.j  a  va  2  s  .com*/
public class Main {

   public static void main(String[] args) {


      // start tracing for instructions
      Runtime.getRuntime().traceMethodCalls(true);
   }
}




















Home »
  Java Tutorial »
    java.lang »




Boolean
Byte
Character
Class
Double
Enum
Float
Integer
Long
Math
Number
Object
Package
Process
ProcessBuilder
Runnable
Runtime
SecurityManager
Short
StackTraceElement
StrictMath
String
StringBuffer
StringBuilder
System
Thread
ThreadGroup
ThreadLocal
Throwable