This reminds me: we dropped all the PerfUtils instrumentation around file indexing when we ditched FileIndexManager.  Would we want to bring that back in getAllFiles()?