aboutsummaryrefslogtreecommitdiff
path: root/common/hashmap.h
diff options
context:
space:
mode:
authorMax Horn2008-08-20 10:18:59 +0000
committerMax Horn2008-08-20 10:18:59 +0000
commit47429f219750033c011dadfd5e9106cd5bfcb5b9 (patch)
treef3775dba37cccc6304b18c8fc2984577a3d5b9c8 /common/hashmap.h
parent35b02acb39f9291a198e49bca425b131ae550096 (diff)
downloadscummvm-rg350-47429f219750033c011dadfd5e9106cd5bfcb5b9.tar.gz
scummvm-rg350-47429f219750033c011dadfd5e9106cd5bfcb5b9.tar.bz2
scummvm-rg350-47429f219750033c011dadfd5e9106cd5bfcb5b9.zip
Extended HashMap debug output
svn-id: r34051
Diffstat (limited to 'common/hashmap.h')
-rw-r--r--common/hashmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/hashmap.h b/common/hashmap.h
index 69f367de97..9b819db5e1 100644
--- a/common/hashmap.h
+++ b/common/hashmap.h
@@ -338,6 +338,10 @@ HashMap<Key, Val, HashFunc, EqualFunc>::~HashMap() {
freeNode(_arr[ctr]);
delete[] _arr;
+#ifdef DEBUG_HASH_COLLISIONS
+ extern void updateHashCollisionStats(int, int, int, int);
+ updateHashCollisionStats(_collisions, _lookups, _arrsize, _nele);
+#endif
}
/**