LUCENE-10588: log elapsed time for initializing gui (#937)

This commit is contained in:
Tomoko Uchida 2022-06-01 21:01:08 +09:00 committed by GitHub
parent 1b105f0eeb
commit 4c53a53238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -92,6 +92,7 @@ public class LukeMain {
javax.swing.SwingUtilities.invokeLater( javax.swing.SwingUtilities.invokeLater(
() -> { () -> {
try { try {
long _start = System.nanoTime() / 1_000_000;
guiThreadResult.put(createGUI()); guiThreadResult.put(createGUI());
// Show the initial dialog. // Show the initial dialog.
@ -102,6 +103,9 @@ public class LukeMain {
600, 600,
420, 420,
(factory) -> {}); (factory) -> {});
long _end = System.nanoTime() / 1_000_000;
log.info("Elapsed time for initializing GUI: " + (_end - _start) + "msec");
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }