No description
.idea | ||
agent | ||
application | ||
profiler | ||
.gitignore | ||
hs_err_pid5684.log | ||
lab-6-maggicl.iml | ||
README.md |
Environment
export JAVA_HOME=`/usr/libexec/java_home -v 1.8.0_345`
export PATH="${JAVA_HOME}/bin:$PATH"
Agent
Compile the agent as JAR
cd agent/src
find . -name '*.java' -print -exec javac -cp ../lib/\*:. -d ../../out/production/agent \{\} \;
cd ..
jar cfm agent.jar manifest.txt -C ../out/production/agent .
Profiler
Compile the profiler
cd profiler/src
find . -name '*.java' -print -exec javac -d ../../out/production/profiler \{\} \;
cd ../..
Run application with agent
java -javaagent:agent/agent.jar=hello -cp out/production/application:out/production/profiler ch.usi.inf.sp.dbi.Application