A bytecode capture agent for the JVM. Based on:
Requires a JVMTI-capable JVM and the "mkdir" command from GNU coreutils.
To compile it:
-
Edit the Makefile and configure the
JDK_INCLUDE
path to point to the directory containing jvmti.h. To run the tests based on doop-benchmarks, also set theDOOP_BENCHMARKS
path. -
make agent
To run the tests:
make tests
Or, individually:
make test_run_example
make test_run_proxy_example
make test_run_cafe
Tests "test_run_proxy_example" and "test_run_cafe" need a correct
DOOP_BENCHMARKS
path.
To use it with your program (e.g., Main.jar):
java -agentpath:./libBytecodeCapture.so -jar Main.jar