aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime
diff options
context:
space:
mode:
authorGravatar Nathan Harmata <nharmata@google.com>2015-07-27 18:18:13 +0000
committerGravatar Laszlo Csomor <laszlocsomor@google.com>2015-07-28 07:52:21 +0000
commitb84c87ea8d442fe1d84666f538eb5fc377599e7b (patch)
treeb90cfef7836aa43f223a9d47868b7ec4ab76740f /src/main/java/com/google/devtools/build/lib/runtime
parent029de3d9da0faa879f972837079720387c166244 (diff)
Record time spent loading action cache in INFO log.
-- MOS_MIGRATED_REVID=99198288
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java
index fcd11e5e46..3c0c0f2bff 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java
@@ -654,6 +654,11 @@ public final class BlazeRuntime {
+ "Blaze will now reset action cache data, causing a full rebuild"));
actionCache = new CompactPersistentActionCache(getCacheDirectory(), clock);
} finally {
+ long stopTime = Profiler.nanoTimeMaybe();
+ long duration = stopTime - startTime;
+ if (duration > 0) {
+ LOG.info("Spent " + (duration / 1000) + " ms loading persistent action cache");
+ }
Profiler.instance().logSimpleTask(startTime, ProfilerTask.INFO, "Loading action cache");
}
}