aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Thiago Farina <tfarina@chromium.org>2016-05-04 14:24:14 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-05-04 18:31:31 +0000
commit36c1d154847bc597974d205be3bb7eb6cb6dd393 (patch)
tree34d8e73141b9fecb7676a6fa498891c39031604d /src
parent4dd18ecfc4c32497ca40f3af4d37e24a8f99dfb7 (diff)
cpp: fix documentation wording for data members in GlobalVariables
Some had incorrect words, or were missing a word and the end period. Make it match with the descriptions in CommonCommandOptions.java. Add a short documentation comment to |restart_reason| field. -- Change-Id: Iac802eb3ed4f72dfd402e85d2098a5616b40a9de Reviewed-on: https://bazel-review.googlesource.com/3530 MOS_MIGRATED_REVID=121478703
Diffstat (limited to 'src')
-rw-r--r--src/main/cpp/blaze_globals.h18
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java10
2 files changed, 16 insertions, 12 deletions
diff --git a/src/main/cpp/blaze_globals.h b/src/main/cpp/blaze_globals.h
index f8dc24a6a2..fdadea1b74 100644
--- a/src/main/cpp/blaze_globals.h
+++ b/src/main/cpp/blaze_globals.h
@@ -31,7 +31,7 @@ using std::vector;
namespace blaze {
// The reason for a blaze server restart.
-// Keep in sync with logging.proto
+// Keep in sync with logging.proto.
enum RestartReason {
NO_RESTART = 0,
NO_DAEMON,
@@ -68,23 +68,25 @@ struct GlobalVariables {
// populated during GetInstallBase().
vector<string> extracted_binaries;
- // Parsed startup options
+ // Parsed startup options.
BlazeStartupOptions options;
- // The time in ms the launcher spends before sending the request to the Blaze
+ // The time in ms the launcher spends before sending the request to the blaze
+ // server.
uint64_t startup_time;
- // The time spent on extracting the new blaze version
- // This is part of startup_time
+ // The time in ms spent on extracting the new blaze version.
+ // This is part of startup_time.
uint64_t extract_data_time;
- // The time in ms if a command had to wait on a busy Blaze server process
- // This is part of startup_time
+ // The time in ms a command had to wait on a busy Blaze server process.
+ // This is part of startup_time.
uint64_t command_wait_time;
+ // The reason for the server restart.
RestartReason restart_reason;
- // Absolute path of the blaze binary
+ // The absolute path of the blaze binary.
string binary_path;
// MD5 hash of the Blaze binary (includes deploy.jar, extracted binaries, and
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java b/src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java
index 68df6a7258..fb521aee96 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java
@@ -212,10 +212,12 @@ public class CommonCommandOptions extends OptionsBase {
help = "The time in ms the launcher spends before sending the request to the blaze server.")
public long startupTime;
- @Option(name = "extract_data_time",
- defaultValue = "0",
- category = "hidden",
- help = "The time spend on extracting the new blaze version.")
+ @Option(
+ name = "extract_data_time",
+ defaultValue = "0",
+ category = "hidden",
+ help = "The time in ms spent on extracting the new blaze version."
+ )
public long extractDataTime;
@Option(name = "command_wait_time",