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:
parent
bed0869293
commit
eb21d06ecc
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue