Skip to content
Snippets Groups Projects
Commit 7892c25a authored by Reiner Jung's avatar Reiner Jung
Browse files

Minor fix

parent 6d2634b7
No related branches found
No related tags found
No related merge requests found
...@@ -46,15 +46,15 @@ function executeExperiment() { ...@@ -46,15 +46,15 @@ function executeExperiment() {
BENCHMARK_OPTS="${JAVA_ARGS} ${LTW_ARGS} ${KIEKER_ARGS} ${kieker_parameters}" BENCHMARK_OPTS="${JAVA_ARGS} ${LTW_ARGS} ${KIEKER_ARGS} ${kieker_parameters}"
fi fi
echo "Run options: ${BENCHMARK_OPTS} -jar MooBench.jar" debug "Run options: ${BENCHMARK_OPTS} -jar MooBench.jar"
${JAVA_BIN} ${BENCHMARK_OPTS} -jar "${BASE_DIR}/MooBench.jar" \ "${JAVA_BIN}" ${BENCHMARK_OPTS} -jar "${BASE_DIR}/MooBench.jar" \
--application moobench.application.MonitoredClassSimple \ --application moobench.application.MonitoredClassSimple \
--output-filename "${RAWFN}-${loop}-${recursion}-${index}.csv" \ --output-filename "${RAWFN}-${loop}-${recursion}-${index}.csv" \
--total-calls "${TOTAL_NUM_OF_CALLS}" \ --total-calls "${TOTAL_NUM_OF_CALLS}" \
--method-time "${METHOD_TIME}" \ --method-time "${METHOD_TIME}" \
--total-threads 1 \ --total-threads 1 \
--recursion-depth "${recursion}" &> "${RESULTS_DIR}/output_${loop}_${RECURSION_DEPTH}_${index}.txt" --recursion-depth "${recursion}" #&> "${RESULTS_DIR}/output_${loop}_${RECURSION_DEPTH}_${index}.txt"
rm -rf "${DATA_DIR}"/kieker-* rm -rf "${DATA_DIR}"/kieker-*
......
...@@ -75,7 +75,7 @@ function periodicallyCurlPrometheus { ...@@ -75,7 +75,7 @@ function periodicallyCurlPrometheus {
while [ true ] while [ true ]
do do
echo "Curling for prometheus simulation..." echo "Curling for prometheus simulation..."
curl localhost:8888/metrics curl localhost:8888/metrics
sleep 15 sleep 15
done done
} }
...@@ -108,7 +108,7 @@ function writeConfiguration() { ...@@ -108,7 +108,7 @@ function writeConfiguration() {
function printIntermediaryResults { function printIntermediaryResults {
for ((index=0;index<${#TITLE[@]};index+=1)); do for ((index=0;index<${#TITLE[@]};index+=1)); do
echo -n "Intermediary results "${TITLE[$index]}" " echo -n "Intermediary results "${TITLE[$index]}" "
cat ${RESULTS_DIR}/raw-*-${RECURSION_DEPTH}-${index}.csv | awk -F';' '{print $2}' | getSum cat ${RAWFN}-*-${RECURSION_DEPTH}-${index}.csv | awk -F';' '{print $2}' | getSum
done done
} }
...@@ -143,6 +143,12 @@ function info() { ...@@ -143,6 +143,12 @@ function info() {
echo -e "${INFO} $@" echo -e "${INFO} $@"
} }
function debug() {
if [ "$DEBUG" == "yes" ] ; then
echo -e "${INFO} $@"
fi
}
# $1 = NAME, $2 = EXECUTABLE # $1 = NAME, $2 = EXECUTABLE
function checkExecutable() { function checkExecutable() {
if [ "$2" == "" ] ; then if [ "$2" == "" ] ; then
...@@ -184,7 +190,7 @@ function checkDirectory() { ...@@ -184,7 +190,7 @@ function checkDirectory() {
exit 1 exit 1
fi fi
if [ ! -d "$2" ] ; then if [ ! -d "$2" ] ; then
if [ "$3" == "create" ] ; then if [ "$3" == "create" ] || [ "$3" == "recreate" ] ; then
info "$1: directory does not exist, creating it" info "$1: directory does not exist, creating it"
mkdir -p "$2" mkdir -p "$2"
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment