Go to file
2023-12-19 16:19:13 +01:00
.idea Added asm library 2023-12-13 12:05:53 +01:00
agent https://www.youtube.com/watch\?v\=E3418SeWZfQ 2023-12-19 16:19:13 +01:00
application agent works 2023-12-13 11:41:52 +01:00
profiler https://www.youtube.com/watch\?v\=E3418SeWZfQ 2023-12-19 16:19:13 +01:00
.gitignore agent works 2023-12-13 11:41:52 +01:00
hs_err_pid5684.log https://www.youtube.com/watch\?v\=E3418SeWZfQ 2023-12-19 16:19:13 +01:00
lab-6-maggicl.iml agent works 2023-12-13 11:41:52 +01:00
README.md https://www.youtube.com/watch\?v\=E3418SeWZfQ 2023-12-19 16:19:13 +01:00

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