Inject behavior analysis to hash-collections (HashMap, HashSet, etc.)
Accesses to hash collections are instrumented, and statistics are automatically displayed at the end of the program.
This module helps to detect, and track bad behavior on hash-collections, especially collisions.
- compile your program with
- execute your program.
import this module and use the functions
Sys::clear_hash_stats at strategic points.
You can also use some dynamic call-graph tools (like valgrind) and look
at callers of
- hash_debug: Inject behavior analysis to hash-collections (HashMap, HashSet, etc.) (lib/hash_debug.nit)