diff options
author | 2015-07-27 18:18:13 +0000 | |
---|---|---|
committer | 2015-07-28 07:52:21 +0000 | |
commit | b84c87ea8d442fe1d84666f538eb5fc377599e7b (patch) | |
tree | b90cfef7836aa43f223a9d47868b7ec4ab76740f /src/main/java/com/google/devtools/build/lib/runtime | |
parent | 029de3d9da0faa879f972837079720387c166244 (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.java | 5 |
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"); } } |