From: Jean-Philippe Orsini Date: Sun, 24 Jul 2011 09:59:10 +0000 (+0000) Subject: script to run psensor with valgrind X-Git-Tag: v0.8.0.5~686 X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=d40938d5701d04c33f1c79fee04fc15bf383a872 script to run psensor with valgrind --- diff --git a/scripts/val_psensor.sh b/scripts/val_psensor.sh new file mode 100755 index 0000000..3848fa8 --- /dev/null +++ b/scripts/val_psensor.sh @@ -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