aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe
diff options
context:
space:
mode:
authorGravatar Nathan Harmata <nharmata@google.com>2015-07-16 08:29:21 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2015-07-17 13:16:50 +0000
commitc1405ef97a7be32edb0b798fb7554b2ee19894f8 (patch)
tree899b8f7ef9e578089ba5774011e3e08f66db7122 /src/main/java/com/google/devtools/build/lib/skyframe
parentb961bb931400044ed91e6b0b596f94fe983f9f17 (diff)
Log information about the baseline and new View passed to DiffAwarness#getDiff.
-- MOS_MIGRATED_REVID=98382658
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/DiffAwarenessManager.java2
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/LocalDiffAwareness.java6
2 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/DiffAwarenessManager.java b/src/main/java/com/google/devtools/build/lib/skyframe/DiffAwarenessManager.java
index 2248607c0b..f57ec0d845 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/DiffAwarenessManager.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/DiffAwarenessManager.java
@@ -103,6 +103,7 @@ public final class DiffAwarenessManager {
}
ModifiedFileSet diff;
+ LOG.info("About to compute diff between " + baselineView + " and " + newView);
try {
diff = diffAwareness.getDiff(baselineView, newView);
} catch (BrokenDiffAwarenessException e) {
@@ -119,6 +120,7 @@ public final class DiffAwarenessManager {
private void handleBrokenDiffAwareness(Path pathEntry, BrokenDiffAwarenessException e) {
currentDiffAwarenessStates.remove(pathEntry);
+ LOG.info("Broken diff awareness for " + pathEntry + ": " + e);
reporter.handle(Event.warn(e.getMessage() + "... temporarily falling back to manually "
+ "checking files for changes"));
}
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/LocalDiffAwareness.java b/src/main/java/com/google/devtools/build/lib/skyframe/LocalDiffAwareness.java
index 389f39a638..dba00768ce 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/LocalDiffAwareness.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/LocalDiffAwareness.java
@@ -114,6 +114,12 @@ public class LocalDiffAwareness implements DiffAwareness {
public static boolean areInSequence(SequentialView oldView, SequentialView newView) {
return oldView.owner == newView.owner && (oldView.position + 1) == newView.position;
}
+
+ @Override
+ public String toString() {
+ return String.format("SequentialView[owner=%s, position=%d, modifiedAbsolutePaths=%s]", owner,
+ position, modifiedAbsolutePaths);
+ }
}
@Override