aboutsummaryrefslogtreecommitdiff
path: root/build2/b.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-04-30 13:46:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-04-30 13:46:57 +0200
commitbbb0ead7e82edd3081ebd9243655b851b0ab4779 (patch)
treed0888a46810e74d91dc27d385e8c78358be267bb /build2/b.cxx
parent8a82f67e2cb3366ab6988bcb56eb06c1d56fdc5d (diff)
Don't print scheduler statistics at verbosity level 2, add --stat instead
Diffstat (limited to 'build2/b.cxx')
-rw-r--r--build2/b.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/build2/b.cxx b/build2/b.cxx
index b73a0d6..ba84b1c 100644
--- a/build2/b.cxx
+++ b/build2/b.cxx
@@ -1393,9 +1393,10 @@ main (int argc, char* argv[])
//
assert (st.task_queue_remain == 0);
- if (verb >= (st.thread_max_active > 1 ? 3 : 4))
+ if (ops.stat ())
{
- info << "scheduler statistics:" << "\n\n"
+ text << '\n'
+ << "build statistics:" << "\n\n"
<< " thread_max_active " << st.thread_max_active << '\n'
<< " thread_max_total " << st.thread_max_total << '\n'
<< " thread_helpers " << st.thread_helpers << '\n'