Class MethodTracer

java.lang.Object
com.ibm.wala.shrike.shrikeBT.shrikeCT.tools.MethodTracer

public class MethodTracer extends Object
This is a demo class.

Class files are taken as input arguments (or if there are none, from standard input). The methods in those files are instrumented: we insert a System.err.println() at ever method call, and a System.err.println() at every method entry.

In Unix, I run it like this: java -cp ~/dev/shrike/shrike com.ibm.wala.shrikeBT.shrikeCT.tools.MethodTracer test.jar -o output.jar

All modified classes are copied into "output.jar". Some classes may not be modified. To run the resulting code, you should put output.jar and test.jar on the classpath, and put output.jar before test.jar. Disassembled code is written to the file "report" under the current directory.

  • Constructor Details

    • MethodTracer

      public MethodTracer()
  • Method Details