aboutsummaryrefslogtreecommitdiffhomepage
path: root/performance-test/perf-test-lib.sh
diff options
context:
space:
mode:
authorGravatar David Bremner <bremner@debian.org>2012-12-26 12:29:45 -0400
committerGravatar David Bremner <bremner@debian.org>2012-12-30 21:12:11 -0400
commit8d05dcfffe001dc64d750f509e049340320b4dd9 (patch)
tree6c04193230f1cab267978b05c30468e3d4db5136 /performance-test/perf-test-lib.sh
parente40bb1561a6036fcc6a8ff3510dc5061a0ea31e8 (diff)
perf-test: initial support for talloc leak report in memory tests
As with the valgrind logs, we print a (very) brief summary and leave the log for inspection.
Diffstat (limited to 'performance-test/perf-test-lib.sh')
-rw-r--r--performance-test/perf-test-lib.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/performance-test/perf-test-lib.sh b/performance-test/perf-test-lib.sh
index 10d05e07..9ee76613 100644
--- a/performance-test/perf-test-lib.sh
+++ b/performance-test/perf-test-lib.sh
@@ -126,13 +126,16 @@ memory_run ()
test_count=$(($test_count+1))
log_file=$log_dir/$test_count.log
+ talloc_log=$log_dir/$test_count.talloc
printf "[ %d ]\t%s\n" $test_count "$1"
- valgrind --leak-check=full --log-file="$log_file" $2
+ NOTMUCH_TALLOC_REPORT="$talloc_log" valgrind --leak-check=full --log-file="$log_file" $2
awk '/LEAK SUMMARY/,/suppressed/ { sub(/^==[0-9]*==/," "); print }' "$log_file"
echo
+ sed -n -e 's/.*[(]total *\([^)]*\)[)]/talloced at exit: \1/p' $talloc_log
+ echo
}
memory_done ()