summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-01-09 17:01:41 (GMT)
committerEvan Martin <martine@danga.com>2012-01-09 17:01:41 (GMT)
commit926aa27a85bc7b1996fbebd651014bab078bfda5 (patch)
treeef6b10f12f474f5158becb192bfc068141f94398
parent5f56ff1fc1ef7d0d5db24093397a2ae10015dd2b (diff)
downloadNinja-926aa27a85bc7b1996fbebd651014bab078bfda5.zip
Ninja-926aa27a85bc7b1996fbebd651014bab078bfda5.tar.gz
Ninja-926aa27a85bc7b1996fbebd651014bab078bfda5.tar.bz2
include main hash load in -d stats output
-rw-r--r--src/ninja.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index 3f76e9c..7517785 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -703,7 +703,14 @@ reload:
}
int result = RunBuild(&globals, argc, argv);
- if (g_metrics)
+ if (g_metrics) {
g_metrics->Report();
+
+ printf("\n");
+ int count = (int)globals.state->paths_.size();
+ int buckets = (int)globals.state->paths_.bucket_count();
+ printf("path->node hash load %.2f (%d entries / %d buckets)\n",
+ count / (double) buckets, count, buckets);
+ }
return result;
}