diff options
-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"); } } |