From 647452ae4c7f97c0d492ac6c31b73e3e24aa56f7 Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Wed, 4 Sep 2013 12:08:15 -0600 Subject: [PATCH] Add function to run with malloc debugging --- bash_profile | 13 +++++++++++++ gitconfig | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/bash_profile b/bash_profile index e90ca23..8b6aad0 100644 --- a/bash_profile +++ b/bash_profile @@ -37,6 +37,19 @@ function start_smtpd { python -m smtpd -n -c DebuggingServer localhost:$PORT } +function run_gmalloc { + # Sub shell + ( + export MallocStackLogging=1 + export MallocCheckHeapStart=1000 + export MallocCheckHeapEach=100 + export MallocScribble=1 + export MallocPreScribble=1 + export MallocStackLoggingNoCompact=1 + + $@) +} + if [ -f ~/.bash_profile.local ]; then . ~/.bash_profile.local fi diff --git a/gitconfig b/gitconfig index 1dd134a..800d072 100644 --- a/gitconfig +++ b/gitconfig @@ -1,6 +1,6 @@ [user] name = Bert JW Regeer - email = bertjw@regeer.org + email = bert.regeer@absio.com [color] ui = true [core]