script to run psensor with valgrind
[psensor.git] / scripts / val_psensor.sh
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