First attempt at some performance tracking tools.  Includes a script vg_perf
(use "make perf" to run) that executes test programs and times their
slowdowns under various tools.  It works a lot like the vg_regtest script.
It's a bit rough around the edges -- eg. you can't currently directly
compare two different versions of Valgrind, which would be useful -- but it
is a good start.

There are currently two test programs in perf/.  More will be added as time
goes on.  This stuff will be built on so that performance changes can be
tracked over time.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5323 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/Makefile.am b/Makefile.am
index 9fb0418..9df0d8b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,7 +16,7 @@
 # And we want to include Addrcheck in the distro, but not compile/test it.
 # Put docs last because building the HTML is slow and we want to get
 # everything else working before we try it.
-SUBDIRS = include coregrind . tests auxprogs $(TOOLS) helgrind docs
+SUBDIRS = include coregrind . tests perf auxprogs $(TOOLS) helgrind docs
 DIST_SUBDIRS  = $(SUBDIRS) addrcheck
 
 SUPP_FILES = \
@@ -58,6 +58,10 @@
 regtest: check
 	@PERL@ tests/vg_regtest $(TOOLS)
 
+## Preprend @PERL@ because tests/vg_per isn't executable
+perf: check
+	@PERL@ perf/vg_perf perf
+
 EXTRA_DIST = \
 	ACKNOWLEDGEMENTS \
 	README_DEVELOPERS \