#!/bin/sh
export G_SLICE=always-malloc
export G_DEBUG=gc-friendly
#exec valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20 /usr/bin/gnome-panel.bin >$HOME/gnome-panel.valgrind-`date +%Y%m%d` 2>&1
#exec valgrind --tool=memcheck --show-reachable=yes --leak-check=full --leak-resolution=high --num-callers=20 /usr/bin/gnome-panel.bin >$HOME/gnome-panel.valgrind-`date +%Y%m%d` 2>&1
#exec valgrind --tool=massif --depth=50 --trace-children=yes --log-file=$HOME/gnome-panel.valgrind-`date +%Y%m%d`.%p --massif-out-file=$HOME/gnome-panel.massif-`date +%Y%m%d`.%p /usr/bin/gnome-panel.bin >gnome-panel.valgrind-`date +%Y%m%d` 2>&1
exec valgrind --tool=massif --depth=50 --log-file=$HOME/gnome-panel.valgrind-`date +%Y%m%d`.%p --massif-out-file=$HOME/gnome-panel.massif-`date +%Y%m%d`.%p /usr/bin/gnome-panel.bin >gnome-panel.valgrind-`date +%Y%m%d`.$$ 2>&1

