No description
This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2023-12-19 16:27:18 +01:00
.idea Added asm library 2023-12-13 12:05:53 +01:00
agent works 2023-12-19 16:27:18 +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 works 2023-12-19 16:27:18 +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 ../..

Application

Compile the application

cd application/src
find . -name '*.java' -print -exec javac -d ../../out/production/application \{\} \;
cd ../..

Run application with agent

java -javaagent:agent/agent.jar=hello -cp out/production/application -Xbootclasspath/p:out/production/profiler ch.usi.inf.sp.dbi.Application