$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r83853 - trunk/tools/build/v2/engine
From: steven_at_[hidden]
Date: 2013-04-11 18:52:17
Author: steven_watanabe
Date: 2013-04-11 18:52:16 EDT (Thu, 11 Apr 2013)
New Revision: 83853
URL: http://svn.boost.org/trac/boost/changeset/83853
Log:
Add the size of the hash object itself to the profiling output.
Text files modified: 
   trunk/tools/build/v2/engine/hash.c |     5 ++++-                                   
   trunk/tools/build/v2/engine/hash.h |     1 +                                       
   2 files changed, 5 insertions(+), 1 deletions(-)
Modified: trunk/tools/build/v2/engine/hash.c
==============================================================================
--- trunk/tools/build/v2/engine/hash.c	(original)
+++ trunk/tools/build/v2/engine/hash.c	2013-04-11 18:52:16 EDT (Thu, 11 Apr 2013)
@@ -327,6 +327,7 @@
     stats->tab_size = 0;
     stats->item_size = 0;
     stats->sets = 0;
+    stats->num_hashes = 0;
 }
 
 
@@ -357,19 +358,21 @@
         stats->num_items += hp->items.nel;
         stats->tab_size += hp->tab.nel;
         stats->item_size = hp->items.size;
+        ++stats->num_hashes;
     }
 }
 
 
 void hashstats_print( struct hashstats * stats, char const * name )
 {
-    printf( "%s table: %d+%d+%d (%dK+%luK) items+table+hash, %f density\n",
+    printf( "%s table: %d+%d+%d (%dK+%luK+%luK) items+table+hash, %f density\n",
         name,
         stats->count,
         stats->num_items,
         stats->tab_size,
         stats->num_items * stats->item_size / 1024,
         (long unsigned)stats->tab_size * sizeof( ITEM * * ) / 1024,
+        (long unsigned)stats->num_hashes * sizeof( struct hash ) / 1024,
         (float)stats->count / (float)stats->sets );
 }
 
Modified: trunk/tools/build/v2/engine/hash.h
==============================================================================
--- trunk/tools/build/v2/engine/hash.h	(original)
+++ trunk/tools/build/v2/engine/hash.h	2013-04-11 18:52:16 EDT (Thu, 11 Apr 2013)
@@ -69,6 +69,7 @@
     int tab_size;
     int item_size;
     int sets;
+    int num_hashes;
 };
 
 void hashstats_init( struct hashstats * stats );