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:04:30 UTC

[lucene] branch branch_9x 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 branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git


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

commit 73a06cdbccf1f29387175be0e959c03564e490a1
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);
           }