NIFI-3164 Added NAR loading duration

This closes #1366.

Signed-off-by: James Wing <jvwing@gmail.com>
This commit is contained in:
Pierre Villard 2016-12-28 18:59:15 +01:00 committed by James Wing
parent 5c095f3a18
commit 4986b83b83
1 changed files with 3 additions and 0 deletions

View File

@ -91,6 +91,7 @@ public final class NarUnpacker {
}
if (!narFiles.isEmpty()) {
final long startTime = System.nanoTime();
logger.info("Expanding " + narFiles.size() + " NAR files with all processors... It can take few minutes.");
for (File narFile : narFiles) {
logger.debug("Expanding NAR file: " + narFile.getAbsolutePath());
@ -146,6 +147,8 @@ public final class NarUnpacker {
}
}
}
final long endTime = System.nanoTime();
logger.info("NAR loading process took " + (endTime - startTime) + " nanoseconds.");
}
// attempt to delete any docs files that exist so that any