]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
helgrind stats: show the total nr of thr_n_rcec
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 23 May 2015 15:47:35 +0000 (15:47 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 23 May 2015 15:47:35 +0000 (15:47 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15285

helgrind/libhb_core.c

index 7cf70c08e4cf89fa8543d25684b725cbb1813024..58492a1638413c2295514e61115fb89eb21b51c9 100644 (file)
@@ -6526,10 +6526,13 @@ void libhb_shutdown ( Bool show_stats )
          tl_assert(OldRef_n == oldrefTreeN);
          VG_(printf)( "   libhb: oldrefTreeN %lu (%d bytes)\n", 
                       oldrefTreeN, (int)(oldrefTreeN * sizeof(OldRef)));
-         VG_(printf)( "( ");
-         for (i = 0; i <= N_OLDREF_ACCS; i++)
+         VG_(printf)( "   libhb: ( ");
+         accs_n = 0;
+         for (i = 0; i <= N_OLDREF_ACCS; i++) {
             VG_(printf)( "accs[%d]=%lu ", i, OldRef_accs_n[i]);
-         VG_(printf)( ")\n");
+            accs_n += OldRef_accs_n[i] * i;
+         }
+         VG_(printf)( ") (tot Thr_n_RCEC %d)\n", accs_n);
          VG_(printf)( "   libhb: oldref lookup found=%lu notfound=%lu\n",
                       stats__evm__lookup_found, stats__evm__lookup_notfound);
       }