aboutsummaryrefslogtreecommitdiffstats
path: root/libibex/index.h
diff options
context:
space:
mode:
Diffstat (limited to 'libibex/index.h')
-rw-r--r--libibex/index.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libibex/index.h b/libibex/index.h
index 35e3df23c2..c3c83c1bcf 100644
--- a/libibex/index.h
+++ b/libibex/index.h
@@ -25,10 +25,16 @@
/* an indexing 'class' maps a key to 1 piece of info */
+#define INDEX_STAT
+
struct _IBEXIndex {
struct _IBEXIndexClass *klass;
struct _memcache *blocks;
blockid_t root; /* root block of ondisk index data */
+#ifdef INDEX_STAT
+ int lookups; /* how many lookups */
+ int lookup_total; /* how many blocks loaded for all lookups (hash chain depth) */
+#endif
};
struct _IBEXIndexClass {