diff options
Diffstat (limited to 'src/libutil/aterm-map.cc')
-rw-r--r-- | src/libutil/aterm-map.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/libutil/aterm-map.cc b/src/libutil/aterm-map.cc index 33388e148a..6c53e07c46 100644 --- a/src/libutil/aterm-map.cc +++ b/src/libutil/aterm-map.cc @@ -1,9 +1,14 @@ #include "aterm-map.hh" +#include <iostream> + #include <assert.h> #include <stdlib.h> +namespace nix { + + static const unsigned int maxLoadFactor = /* 1 / */ 3; static unsigned int nrResizes = 0; static unsigned int sizeTotalAlloc = 0; @@ -214,10 +219,11 @@ unsigned int ATermMap::size() } -#include <iostream> - void printATermMapStats() { + using std::cerr; + using std::endl; + cerr << "RESIZES: " << nrResizes << " " << sizeTotalAlloc << " " << sizeCurAlloc << " " @@ -319,3 +325,6 @@ int main(int argc, char * * argv) printATermMapStats(); } #endif + + +} |