Add some basic logging around DiffAwareness
Some simple logging to tell us what strategy we are using and how many
files we detect as modified. Useful for debugging slow (or fast) builds.
--
MOS_MIGRATED_REVID=93745644
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/DiffAwareness.java b/src/main/java/com/google/devtools/build/lib/skyframe/DiffAwareness.java
index d0f4c99..f5f7e86 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/DiffAwareness.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/DiffAwareness.java
@@ -73,6 +73,9 @@
ModifiedFileSet getDiff(View oldView, View newView)
throws IncompatibleViewException, BrokenDiffAwarenessException;
+ /** @return the name of this implementation */
+ String name();
+
/**
* Must be called whenever the {@link DiffAwareness} object is to be discarded. Using a
* {@link DiffAwareness} instance after calling {@link #close} on it is unspecified behavior.