RedlineResearch / elephant-tracks

0 stars 1 forks source link

Building

  1. Set the variables as approprriate in Makefile.inc

    • ASMJAR must point at the jar for ASM
    • Java path should point to a jre
    • INSTALL_DIR is where the resulting binaries will end up.
  2. make

  3. make install

Now the binaries will be wherever you set INSTALL_DIR

The program trace will be in OutputFile. Doing the tracing will slow down program execution considerably; on the order of 500-1000 times slower.

Running Elephant Tracks

  1. Make sure that INSTALL_DIR is in the LD_LIBRARY_PATH
  2. Or, be sure that libElephantTracks.so and libHashGraph.so are in a directory in the LD_LIBRARY_PATH
  3. There are two ways in the original documentation on how to run:
    • Run java with the following paramters:
java -Xbootclasspath/a:<INSTALL_DIR> -agentlib:ElephantTracks=javaPath=<path to Java>`:outputFile=<OutputFile>:classReWriter=<INSTALL_DIR>/elephantTracksRewriter.jar
java -classpath <other-paths>:$ASMJAR -Xbootclasspath/a:$INSTALL_DIR \ -agentlib:ElephantTracks=<ElephantTracks Options>
-agentlib:ElephantTracks=:=name1=value1@name2=value2@...@nameN=valueN
bufferSize=<number>