diff options
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; } |