1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 07:35:24 +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
parent fbbed5cf82
commit a72d9b4198

View file

@ -1104,6 +1104,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();