aboutsummaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-12-01 18:24:41 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2016-12-01 18:24:41 +0100
commit7ee347e13ced7f1a84e7b325e65616b169e238a0 (patch)
tree316fbdba8a8526a3093157d2462ac8a55d6ca20b /run.sh
parentbc39d05453340257fff986edfdd728f2a89d13ad (diff)
downloadcmix-7ee347e13ced7f1a84e7b325e65616b169e238a0.tar.gz
cmix-7ee347e13ced7f1a84e7b325e65616b169e238a0.tar.bz2
cmix-7ee347e13ced7f1a84e7b325e65616b169e238a0.zip
Use the new protobuf arena allocator.
Run script now takes a parameter tool to for instance "benchmark"
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh24
1 files changed, 16 insertions, 8 deletions
diff --git a/run.sh b/run.sh
index 7592705..1adca4f 100755
--- a/run.sh
+++ b/run.sh
@@ -2,32 +2,40 @@
build_dir=/home/dennis/projects/cmix/build-cmix-Desktop-Default
+if [ $1 == "benchmark" ] ; then
+ tool="valgrind --tool=cachegrind"
+elif [ $1 == "valgrind" ] ; then
+ tool="valgrind --leak-check=yes --track-origins=yes"
+else
+ tool=""
+fi
+
tmux new-session -s cmix -d
-tmux send-keys -t cmix:0 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 node/node -f -m 5 -n node2.local:9201 -c ../certs/cert1.pem -k ../certs/key1.pem -d ../certs/dh.pem --certdir ../certs/" Enter
+tmux send-keys -t cmix:0 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 $tool node/node -f -m 5 -n node2.local:9201 -c ../certs/cert1.pem -k ../certs/key1.pem -d ../certs/dh.pem --certdir ../certs/" Enter
#tmux send-keys -t cmix:0 "r" Enter
tmux new-window -t cmix:1
-tmux send-keys -t cmix:1 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 node/node -p 9201 -n node3.local:9202 -c ../certs/cert2.pem -k ../certs/key2.pem -d ../certs/dh.pem --certdir ../certs/" Enter
+tmux send-keys -t cmix:1 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 $tool node/node -p 9201 -n node3.local:9202 -c ../certs/cert2.pem -k ../certs/key2.pem -d ../certs/dh.pem --certdir ../certs/" Enter
#tmux send-keys -t cmix:1 "r" Enter
tmux new-window -t cmix:2
-tmux send-keys -t cmix:2 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 node/node -l -p 9202 -n node1.local:9200 -c ../certs/cert3.pem -k ../certs/key3.pem -d ../certs/dh.pem --certdir ../certs/" Enter
+tmux send-keys -t cmix:2 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 $tool node/node -l -p 9202 -n node1.local:9200 -c ../certs/cert3.pem -k ../certs/key3.pem -d ../certs/dh.pem --certdir ../certs/" Enter
#tmux send-keys -t cmix:2 "r" Enter
tmux new-window -t cmix:3
-tmux send-keys -t cmix:3 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 client/client --certdir ../certs -n node1.local:9200 node2.local:9201 node3.local:9202" Enter
+tmux send-keys -t cmix:3 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 $tool client/client --certdir ../certs -n node1.local:9200 node2.local:9201 node3.local:9202" Enter
tmux new-window -t cmix:4
-tmux send-keys -t cmix:4 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 client/client --certdir ../certs -n node1.local:9200 node2.local:9201 node3.local:9202" Enter
+tmux send-keys -t cmix:4 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 $tool client/client --certdir ../certs -n node1.local:9200 node2.local:9201 node3.local:9202" Enter
tmux new-window -t cmix:5
-tmux send-keys -t cmix:5 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 client/client --certdir ../certs -n node1.local:9200 node2.local:9201 node3.local:9202" Enter
+tmux send-keys -t cmix:5 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 $tool client/client --certdir ../certs -n node1.local:9200 node2.local:9201 node3.local:9202" Enter
tmux new-window -t cmix:6
-tmux send-keys -t cmix:6 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 client/client --certdir ../certs -n node1.local:9200 node2.local:9201 node3.local:9202" Enter
+tmux send-keys -t cmix:6 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 $tool client/client --certdir ../certs -n node1.local:9200 node2.local:9201 node3.local:9202" Enter
tmux new-window -t cmix:7
-tmux send-keys -t cmix:7 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 client/client --certdir ../certs -n node1.local:9200 node2.local:9201 node3.local:9202" Enter
+tmux send-keys -t cmix:7 "cd ${build_dir} && LSAN_OPTIONS=report_objects=1 $tool client/client --certdir ../certs -n node1.local:9200 node2.local:9201 node3.local:9202" Enter
tmux attach