incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r723284 - /incubator/sling/trunk/extensions/jcrinstall/service/src/main/java/org/apache/sling/jcr/jcrinstall/osgi/impl/BundleResourceProcessor.java
Date Thu, 04 Dec 2008 10:44:51 GMT
Author: bdelacretaz
Date: Thu Dec  4 02:44:50 2008
New Revision: 723284

URL: http://svn.apache.org/viewvc?rev=723284&view=rev
Log:
SLING-756 - log bundle startup time

Modified:
    incubator/sling/trunk/extensions/jcrinstall/service/src/main/java/org/apache/sling/jcr/jcrinstall/osgi/impl/BundleResourceProcessor.java

Modified: incubator/sling/trunk/extensions/jcrinstall/service/src/main/java/org/apache/sling/jcr/jcrinstall/osgi/impl/BundleResourceProcessor.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/extensions/jcrinstall/service/src/main/java/org/apache/sling/jcr/jcrinstall/osgi/impl/BundleResourceProcessor.java?rev=723284&r1=723283&r2=723284&view=diff
==============================================================================
--- incubator/sling/trunk/extensions/jcrinstall/service/src/main/java/org/apache/sling/jcr/jcrinstall/osgi/impl/BundleResourceProcessor.java
(original)
+++ incubator/sling/trunk/extensions/jcrinstall/service/src/main/java/org/apache/sling/jcr/jcrinstall/osgi/impl/BundleResourceProcessor.java
Thu Dec  4 02:44:50 2008
@@ -385,7 +385,10 @@
                 log.info("Starting Bundle {}/{} ", bundle.getSymbolicName(),
                     bundle.getBundleId());
                 try {
+                    final long start = System.currentTimeMillis();
                     bundle.start();
+                    final long delta = System.currentTimeMillis() - start;
+                    log.info("bundle.start() call took {} msec for bundle {}", delta, bundle.getSymbolicName());
                 } catch (BundleException be) {
                     log.info("Failed to start Bundle " 
                         + bundle.getSymbolicName() + "/" + bundle.getBundleId()



Mime
View raw message