|
From: <sv...@va...> - 2015-05-23 15:47:45
|
Author: philippe
Date: Sat May 23 16:47:35 2015
New Revision: 15285
Log:
helgrind stats: show the total nr of thr_n_rcec
Modified:
trunk/helgrind/libhb_core.c
Modified: trunk/helgrind/libhb_core.c
==============================================================================
--- trunk/helgrind/libhb_core.c (original)
+++ trunk/helgrind/libhb_core.c Sat May 23 16:47:35 2015
@@ -6526,10 +6526,13 @@
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);
}
|