Initial source commit
This commit is contained in:
commit
f1384c11ee
335 changed files with 52715 additions and 0 deletions
22
minorGems/util/development/leakTracer/LeakCheck
Executable file
22
minorGems/util/development/leakTracer/LeakCheck
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
if [ $# -lt 1 ] ; then
|
||||
echo "Usage: $0 <program [program parameters]>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# this looks in the same directory, this
|
||||
# LeakCheck script resides; modify to your
|
||||
# needs:
|
||||
SHLIB=`dirname $0`/LeakTracer.so
|
||||
if [ ! -x $SHLIB ] ; then
|
||||
echo "$SHLIB not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$LEAKTRACE_FILE" ] ; then
|
||||
rm -f leak.out
|
||||
else
|
||||
rm -f "$LEAKTRACE_FILE"
|
||||
fi
|
||||
export LD_PRELOAD=$SHLIB
|
||||
exec $@
|
Loading…
Add table
Add a link
Reference in a new issue