1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 497500 - Display per-file indexing time for diagnostic purposes

Controlled by the org.eclipse.cdt.core/debug/indexer/activity debug option.

Change-Id: I9eceb9e72697230b51221db7b0680494fefad154
This commit is contained in:
Nathan Ridge 2016-10-13 19:10:47 -04:00 committed by Gerrit Code Review @ Eclipse.org
parent bed0869293
commit eb21d06ecc

View file

@ -1098,6 +1098,10 @@ public abstract class AbstractIndexerTask extends PDOMWriter {
writeToIndex(lang.getLinkageID(), ast, codeReader, ctx, progress.split(10));
resultCacheCleared = true; // The cache was cleared while writing to the index.
}
if (fShowActivity) {
long time = System.currentTimeMillis() - start;
trace("Indexer: processed " + path.toOSString() + " [" + time + " ms]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}
} catch (OperationCanceledException e) {
} catch (RuntimeException e) {
final Throwable cause = e.getCause();