projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into benchmark
[lttng-tools.git]
/
benchmark
/
run-boot-time.sh
diff --git
a/benchmark/run-boot-time.sh
b/benchmark/run-boot-time.sh
index dabb707b9aacaa0020eb9152b5f7c415f93329bf..bbf0edca08a4f1ae6ec8ba3e16f69d3bb03e7845 100755
(executable)
--- a/
benchmark/run-boot-time.sh
+++ b/
benchmark/run-boot-time.sh
@@
-21,31
+21,31
@@
SESSIOND_BIN="ltt-sessiond"
RESULTS_PATH="/tmp/lttng-bench-results.txt"
BASEDIR=`dirname $0`
RESULTS_PATH="/tmp/lttng-bench-results.txt"
BASEDIR=`dirname $0`
-echo "S
ession daemon boot process benchmark
"
+echo "S
tarting session daemon
"
-$BASEDIR/../ltt-sessiond/$SESSIOND_BIN --daemonize --quiet
-if [ $? -ne 0 ]; then
+BENCH_BOOT_PROCESS=1 $BASEDIR/../ltt-sessiond/$SESSIOND_BIN -v >/dev/null 2>&1 &
+
+PID_SESSIOND=$!
+if [ -z $PID_SESSIOND ]; then
echo -e '\e[1;31mFAILED\e[0m'
exit 1
else
echo -e "\e[1;32mOK\e[0m"
echo -e '\e[1;31mFAILED\e[0m'
exit 1
else
echo -e "\e[1;32mOK\e[0m"
+ echo "PID session daemon: $PID_SESSIOND"
fi
fi
-PID_SESSIOND=`pidof lt-$SESSIOND_BIN`
-
# Wait for the benchmark to run
echo -n "Waiting."
sleep 1
echo -n "."
sleep 1
# Wait for the benchmark to run
echo -n "Waiting."
sleep 1
echo -n "."
sleep 1
-echo
-n
"."
+echo "."
sleep 1
kill $PID_SESSIOND
sleep 1
kill $PID_SESSIOND
-echo -e "\nResults will be available shortly in $RESULTS_PATH"
-echo ""
+wait $PID_SESSIOND
-tail -F $RESULTS_PATH --pid $PID_SESSIOND 2>/dev/null
+echo "Benchmarks done in $RESULTS_PATH"
exit 0
exit 0
This page took
0.029997 seconds
and
4
git commands to generate.