Class MethodTracer
- java.lang.Object
-
- com.ibm.wala.shrike.shrikeBT.shrikeCT.tools.MethodTracer
-
public class MethodTracer extends java.lang.ObjectThis 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 Summary
Constructors Constructor Description MethodTracer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)
-