From 6a6bf2d17a1e569f14e68ea370dea506a57e653f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 18 Oct 2017 14:30:06 +0100 Subject: Add valgrind wrapper --- bashrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bashrc b/bashrc index 16c8851..c69b2b8 100644 --- a/bashrc +++ b/bashrc @@ -54,6 +54,14 @@ alias df="/bin/df -hT" title() { echo -ne "\033]0;$@\007" } +vg() { + valgrind \ + --show-leak-kinds=all \ + --suppressions=$HOME/dev/valgrind.suppressions \ + --leak-check=full \ + --log-file=/var/tmp/vg.log \ + $@ +} build() { title "Build in progress" CCACHE_BASEDIR=$(git root) nice -n5 b2 -j$CORES $@ -- cgit v1.2.3