translation of glade content
[prss.git] / scripts / valgrind.sh
diff --git a/scripts/valgrind.sh b/scripts/valgrind.sh
new file mode 100755 (executable)
index 0000000..9d0aa76
--- /dev/null
@@ -0,0 +1,12 @@
+#/bin/bash
+
+SDIR=`dirname $0`
+
+export G_SLICE=always-malloc
+export G_DEBUG=gc-friendly 
+
+DUMP_FILE=prss_`date +"%Y_%m_%d_%H_%M_%S"`.log
+
+echo starts prss with options: $*
+
+valgrind -v  --tool=memcheck --leak-check=full --track-origins=yes --leak-resolution=high --num-callers=20 --log-file=$DUMP_FILE $SDIR/../src/prss $*
\ No newline at end of file