#! /bin/bash

make clean
make
valgrind --tool=memcheck --leak-check=yes --track-origins=yes --log-file=valgrind.log ./train
cat valgrind.log | grep "ERROR SUMMARY"
cat valgrind.log | grep "leak"

#make clean
#make
#rm callgrind.out*
#valgrind --tool=callgrind ./detect bigFace.png
#kcachegrind callgrind.out*
