#!/bin/sh

APP="-cp out/production/arraycopy/ ArrayCopyTest"

echo "-server + jvmti"
java -server -agentlib:yjpagent $APP system >> server-jvmti-system.data
java -server -agentlib:yjpagent $APP naive >> server-jvmti-naive.data
java -server -agentlib:yjpagent $APP smart >> server-jvmti-smart.data

echo "-client + jvmti"
java -client -agentlib:yjpagent $APP system >> client-jvmti-system.data
java -client -agentlib:yjpagent $APP naive >> client-jvmti-naive.data
java -client -agentlib:yjpagent $APP smart >> client-jvmti-smart.data

echo "-server"
java -server $APP system >> server-system.data
java -server $APP naive >> server-naive.data
java -server $APP smart >> server-smart.data

echo "-client"
java -client $APP system >> client-system.data
java -client $APP naive >> client-naive.data
java -client $APP smart >> client-smart.data


