You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2022/06/01 12:01:15 UTC

[lucene] branch main updated: LUCENE-10588: log elapsed time for initializing gui (#937)

This is an automated email from the ASF dual-hosted git repository.

tomoko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new 4c53a53238a LUCENE-10588: log elapsed time for initializing gui (#937)
4c53a53238a is described below

commit 4c53a53238a07df9da45171f64664a8182cddbd7
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Wed Jun 1 21:01:08 2022 +0900

    LUCENE-10588: log elapsed time for initializing gui (#937)
---
 lucene/luke/src/java/org/apache/lucene/luke/app/desktop/LukeMain.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/LukeMain.java b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/LukeMain.java
index 0d52fd91e20..a632eea295c 100644
--- a/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/LukeMain.java
+++ b/lucene/luke/src/java/org/apache/lucene/luke/app/desktop/LukeMain.java
@@ -92,6 +92,7 @@ public class LukeMain {
     javax.swing.SwingUtilities.invokeLater(
         () -> {
           try {
+            long _start = System.nanoTime() / 1_000_000;
             guiThreadResult.put(createGUI());
 
             // Show the initial dialog.
@@ -102,6 +103,9 @@ public class LukeMain {
                     600,
                     420,
                     (factory) -> {});
+
+            long _end = System.nanoTime() / 1_000_000;
+            log.info("Elapsed time for initializing GUI: " + (_end - _start) + "msec");
           } catch (Exception e) {
             throw new RuntimeException(e);
           }