From cadd65799b568502d421747566b2b15b63af01ee Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Wed, 3 Mar 2021 21:05:30 +0100 Subject: [PATCH] Log the time each BeanContainerListener takes - to debug perf problems during startup --- .../src/main/java/io/quarkus/arc/runtime/ArcRecorder.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ArcRecorder.java b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ArcRecorder.java index e1f0d529596e5..82de993b4c258 100644 --- a/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ArcRecorder.java +++ b/extensions/arc/runtime/src/main/java/io/quarkus/arc/runtime/ArcRecorder.java @@ -10,6 +10,8 @@ import java.util.function.Predicate; import java.util.function.Supplier; +import org.jboss.logging.Logger; + import io.quarkus.arc.Arc; import io.quarkus.arc.ArcContainer; import io.quarkus.arc.InjectableBean; @@ -27,6 +29,8 @@ @Recorder public class ArcRecorder { + private static final Logger LOG = Logger.getLogger(ArcRecorder.class); + /** * Used to hold the Supplier instances used for synthetic bean declarations. */ @@ -62,7 +66,10 @@ public BeanContainer initBeanContainer(ArcContainer container, List