script to run psensor with valgrind
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 24 Jul 2011 09:59:10 +0000 (09:59 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 24 Jul 2011 09:59:10 +0000 (09:59 +0000)
scripts/val_psensor.sh [new file with mode: 0755]

diff --git a/scripts/val_psensor.sh b/scripts/val_psensor.sh
new file mode 100755 (executable)
index 0000000..3848fa8
--- /dev/null
@@ -0,0 +1,8 @@
+#/bin/sh
+
+export G_SLICE=always-malloc
+export G_DEBUG=gc-friendly 
+
+DUMP_FILE=psensor_`date +"%Y_%m_%d_%H_%M_%S"`.log
+
+valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20 --log-file=$DUMP_FILE `dirname $0`/../src/psensor
\ No newline at end of file