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() {
BENCHMARK_OPTS="${JAVA_ARGS} ${LTW_ARGS} ${KIEKER_ARGS} ${kieker_parameters}"
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 \
--output-filename "${RAWFN}-${loop}-${recursion}-${index}.csv" \
--total-calls "${TOTAL_NUM_OF_CALLS}" \
--method-time "${METHOD_TIME}" \
--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-*
......
......@@ -75,7 +75,7 @@ function periodicallyCurlPrometheus {
while [ true ]
do
echo "Curling for prometheus simulation..."
curl localhost:8888/metrics
curl localhost:8888/metrics
sleep 15
done
}
......@@ -108,7 +108,7 @@ function writeConfiguration() {
function printIntermediaryResults {
for ((index=0;index<${#TITLE[@]};index+=1)); do
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
}
......@@ -143,6 +143,12 @@ function info() {
echo -e "${INFO} $@"
}
function debug() {
if [ "$DEBUG" == "yes" ] ; then
echo -e "${INFO} $@"
fi
}
# $1 = NAME, $2 = EXECUTABLE
function checkExecutable() {
if [ "$2" == "" ] ; then
......@@ -184,7 +190,7 @@ function checkDirectory() {
exit 1
fi
if [ ! -d "$2" ] ; then
if [ "$3" == "create" ] ; then
if [ "$3" == "create" ] || [ "$3" == "recreate" ] ; then
info "$1: directory does not exist, creating it"
mkdir -p "$2"
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