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

debugging moobench.

parent 9d111879
No related branches found
No related tags found
No related merge requests found
......@@ -113,9 +113,17 @@ EOF
}
function printIntermediaryResults {
loop="$1"
for ((index=0;index<${#TITLE[@]};index+=1)); do
RESULT_FILE="${RAWFN}-${loop}-${RECURSION_DEPTH}-${index}.csv"
checkFile result "${RESULT_FILE}"
raw_length=`cat "${RESULT_FILE}" | wc -l`
if [ "${raw_length}" == "0" ] ; then
error "Result file '${RESULT_FILE}' is empty."
exit 1
fi
info_n "Intermediary results "${TITLE[$index]}" "
cat ${RAWFN}-*-${RECURSION_DEPTH}-${index}.csv | awk -F';' '{print $2}' | getSum
cat "${RESULT_FILE}" | awk -F';' '{print $2}' | getSum
done
}
......@@ -142,6 +150,9 @@ fi
function error() {
echo -e "${ERROR} $@"
if [ "${_STOP_ON_ERROR}" == "true" ] ; then
exit 1
fi
}
function warn() {
......
experiment.rc
\ No newline at end of file
test.rc
\ No newline at end of file
......@@ -7,6 +7,7 @@
# configure base dir
BASE_DIR=$(cd "$(dirname "$0")"; pwd)
MAIN_DIR="${BASE_DIR}/../.."
#
# source functionality
......@@ -17,8 +18,6 @@ if [ ! -d "${BASE_DIR}" ] ; then
exit 1
fi
MAIN_DIR="${BASE_DIR}/../.."
if [ -f "${MAIN_DIR}/common-functions.sh" ] ; then
source "${MAIN_DIR}/common-functions.sh"
else
......@@ -134,8 +133,7 @@ for ((i=1;i<="${NUM_OF_LOOPS}";i+=1)); do
echo "## Starting iteration ${i}/${NUM_OF_LOOPS}" >> "${DATA_DIR}/kieker.log"
executeBenchmark
printIntermediaryResults
printIntermediaryResults "${i}"
done
# Create R labels
......
......@@ -50,14 +50,29 @@ function executeExperiment() {
debug "Run options: ${BENCHMARK_OPTS}"
RESULT_FILE="${RAWFN}-${loop}-${recursion}-${index}.csv"
LOG_FILE="${RESULTS_DIR}/output_${loop}_${RECURSION_DEPTH}_${index}.txt"
"${MOOBENCH_BIN}" \
--application moobench.application.MonitoredClassSimple \
--output-filename "${RAWFN}-${loop}-${recursion}-${index}.csv" \
--output-filename "${RESULT_FILE}" \
--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}" &> "${LOG_FILE}"
if [ ! -f "${RESULT_FILE}" ] ; then
info "---------------------------------------------------"
cat "${LOG_FILE}"
error "Result file '${RESULT_FILE}' is empty."
else
size=`wc -c "${RESULT_FILE}" | awk '{ print $1 }'`
if [ "${size}" == "0" ] ; then
info "---------------------------------------------------"
cat "${LOG_FILE}"
error "Result file '${RESULT_FILE}' is empty."
fi
fi
rm -rf "${DATA_DIR}"/kieker-*
[ -f "${DATA_DIR}/hotspot.log" ] && mv "${DATA_DIR}/hotspot.log" "${RESULTS_DIR}/hotspot-${loop}-${recursion}-${index}.log"
......
......@@ -140,7 +140,7 @@ for ((i=1;i<=${NUM_OF_LOOPS};i+=1)); do
tcpLogging 7 $i 1
tcpLogging 8 $i 2
printIntermediaryResults
printIntermediaryResults "${i}"
done
# Create R labels
......
......@@ -114,7 +114,7 @@ for ((i=1;i<=${NUM_OF_LOOPS};i+=1)); do
runOpenTelemetryPrometheus
cleanup
printIntermediaryResults
printIntermediaryResults "${i}"
done
# Create R labels
......
......@@ -111,7 +111,7 @@ for ((i=1;i<=${NUM_OF_LOOPS};i+=1)); do
runInspectITPrometheus
cleanup
printIntermediaryResults
printIntermediaryResults "${i}"
done
# Create R labels
......
......@@ -11,6 +11,9 @@ BASE_DIR=$(cd "$(dirname "$0")"; pwd)
KEYSTORE="$1"
UPDATE_SITE_URL="$2"
error "Upload deactived for debugging purposes."
exit 1
#
# source functionality
#
......
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