From 94eb5b361c13426d57c5fc2bbd4a1de080c39d7e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 1 May 2002 19:15:46 +0000 Subject: Update. 2002-05-01 Ulrich Drepper * malloc/memusage.c: Add support for tracking mmap & friends. * malloc/memusage.sh: Implement -m/--mmap option. --- malloc/memusage.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'malloc/memusage.sh') diff --git a/malloc/memusage.sh b/malloc/memusage.sh index 0c383268c6..877c17be4e 100755 --- a/malloc/memusage.sh +++ b/malloc/memusage.sh @@ -44,6 +44,7 @@ Profile memory usage of PROGRAM. -u,--unbuffered Don't buffer output -b,--buffer=SIZE Collect SIZE entries before writing them out --no-timer Don't collect additional information though timer + -m,--mmap Also trace mmap & friends -?,--help Print this help and exit --usage Give a short usage message @@ -134,6 +135,9 @@ while test $# -gt 0; do --n | --no | --no- | --no-t | --no-ti | --no-tim | --no-time | --no-timer) notimer=yes ;; + -m | --m | --mm | --mma | --mmap) + tracemmap=yes + ;; -t | --tim | --time | --time- | --time-b | --time-ba | --time-bas | --time-base | --time-based) memusagestat_args="$memusagestat_args -t" ;; @@ -234,6 +238,11 @@ if test -n "$notimer"; then add_env="$add_env MEMUSAGE_NO_TIMER=yes" fi +# Trace mmap. +if test -n "$tracemmap"; then + add_env="$add_env MEMUSAGE_TRACE_MMAP=yes" +fi + # Execute the program itself. eval $add_env '"$@"' result=$? -- cgit v1.2.3