Cachegrind to test and fix for cache misses
[awesomized/libmemcached] / tests / Makefile.am
index cb0bc2a0f32b0e09eb829156232c1b662a087553..5e51f666e0cfe0edb9af4d3a62db15196f8cd242 100644 (file)
@@ -75,6 +75,11 @@ clients:
 valgrind:
        libtool --mode=execute valgrind --leak-check=yes --show-reachable=yes  testapp
 
+cachegrind:
+       rm cachegrind.out.*
+       libtool --mode=execute valgrind --tool=cachegrind  --branch-sim=yes testapp
+       cg_annotate cachegrind.out.* --auto=yes > /tmp/calgrind.out
+
 test-no-outputdiff: testapp
        ./testapp > /dev/null
        @echo "Test completed"