added additional performance logging for initial project symbol scanning

This commit is contained in:
Martin Lippert
2019-03-09 13:31:49 +01:00
parent 972cdd9a5e
commit 4692d1ed18
2 changed files with 12 additions and 0 deletions

View File

@@ -79,7 +79,13 @@ public class SpringIndexerJava implements SpringIndexer {
.map(path -> path.toAbsolutePath().toString())
.collect(Collectors.toList());
log.info("scan java files for symbols for project: " + project.getElementName() + " - no. of files: " + files.size());
long startTime = System.currentTimeMillis();
scanProject(project, (String[]) files.toArray(new String[files.size()]));
long endTime = System.currentTimeMillis();
log.info("scan java files for symbols for project: " + project.getElementName() + " took ms: " + (endTime - startTime));
}
@Override

View File

@@ -61,7 +61,13 @@ public class SpringIndexerXML implements SpringIndexer {
.map(path -> path.toAbsolutePath().toString())
.collect(Collectors.toList());
log.info("scan xml files for symbols for project: " + project.getElementName() + " - no. of files: " + files.size());
long startTime = System.currentTimeMillis();
scanProject(project, (String[]) files.toArray(new String[files.size()]));
long endTime = System.currentTimeMillis();
log.info("scan xml files for symbols for project: " + project.getElementName() + " took ms: " + (endTime - startTime));
}
@Override