aboutsummaryrefslogtreecommitdiff
path: root/build2/b-options.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-options.cxx
parent8a82f67e2cb3366ab6988bcb56eb06c1d56fdc5d (diff)
Don't print scheduler statistics at verbosity level 2, add --stat instead
Diffstat (limited to 'build2/b-options.cxx')
-rw-r--r--build2/b-options.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/build2/b-options.cxx b/build2/b-options.cxx
index 3cfb708..df39b2b 100644
--- a/build2/b-options.cxx
+++ b/build2/b-options.cxx
@@ -597,6 +597,7 @@ namespace build2
quiet_ (),
verbose_ (1),
verbose_specified_ (false),
+ stat_ (),
jobs_ (),
jobs_specified_ (false),
max_jobs_ (),
@@ -733,6 +734,9 @@ namespace build2
<< " 6. Even more detailed information, including state dumps." << ::std::endl;
os << std::endl
+ << "\033[1m--stat\033[0m Display build statistics." << ::std::endl;
+
+ os << std::endl
<< "\033[1m--jobs\033[0m|\033[1m-j\033[0m \033[4mnum\033[0m Number of active jobs to perform in parallel. This" << ::std::endl
<< " includes both the number of active threads inside the" << ::std::endl
<< " build system as well as the number of external commands" << ::std::endl
@@ -881,6 +885,8 @@ namespace build2
_cli_options_map_["--verbose"] =
&::build2::cl::thunk< options, uint16_t, &options::verbose_,
&options::verbose_specified_ >;
+ _cli_options_map_["--stat"] =
+ &::build2::cl::thunk< options, bool, &options::stat_ >;
_cli_options_map_["--jobs"] =
&::build2::cl::thunk< options, size_t, &options::jobs_,
&options::jobs_specified_ >;