diff options
author | Evan Martin <martine@danga.com> | 2012-01-09 17:01:41 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-01-09 17:01:41 (GMT) |
commit | 926aa27a85bc7b1996fbebd651014bab078bfda5 (patch) | |
tree | ef6b10f12f474f5158becb192bfc068141f94398 /src/ninja.cc | |
parent | 5f56ff1fc1ef7d0d5db24093397a2ae10015dd2b (diff) | |
download | Ninja-926aa27a85bc7b1996fbebd651014bab078bfda5.zip Ninja-926aa27a85bc7b1996fbebd651014bab078bfda5.tar.gz Ninja-926aa27a85bc7b1996fbebd651014bab078bfda5.tar.bz2 |
include main hash load in -d stats output
Diffstat (limited to 'src/ninja.cc')
-rw-r--r-- | src/ninja.cc | 9 |
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; } |