Skip to content

Commit

Permalink
Add function to run with malloc debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Bert JW Regeer committed Sep 4, 2013
1 parent 13645b9 commit 647452a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion gitconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[user]
name = Bert JW Regeer
email = bertjw@regeer.org
email = bert.regeer@absio.com
[color]
ui = true
[core]
Expand Down

0 comments on commit 647452a

Please sign in to comment.