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

aledsage pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git

commit 6127e032294180f324de961c272c3abad0cbe767
Author: Paul Campbell <pcampb...@kemitix.net>
AuthorDate: Tue Oct 23 17:06:41 2018 +0100

    Remove stopwatches
---
 .../brooklyn/core/catalog/internal/CatalogInitialization.java      | 7 -------
 1 file changed, 7 deletions(-)

diff --git 
a/core/src/main/java/org/apache/brooklyn/core/catalog/internal/CatalogInitialization.java
 
b/core/src/main/java/org/apache/brooklyn/core/catalog/internal/CatalogInitialization.java
index 18e1f27..b355b97 100644
--- 
a/core/src/main/java/org/apache/brooklyn/core/catalog/internal/CatalogInitialization.java
+++ 
b/core/src/main/java/org/apache/brooklyn/core/catalog/internal/CatalogInitialization.java
@@ -29,7 +29,6 @@ import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
-import java.util.concurrent.TimeUnit;
 
 import org.apache.brooklyn.api.catalog.BrooklynCatalog;
 import org.apache.brooklyn.api.catalog.CatalogItem;
@@ -618,7 +617,6 @@ public class CatalogInitialization implements 
ManagementContextInjectable {
         
         CatalogUpgrades.Builder catalogUpgradesBuilder = 
CatalogUpgrades.builder();
         Collection<ManagedBundle> managedBundles = 
osgiManager.get().getManagedBundles().values();
-        final Stopwatch started = Stopwatch.createStarted();
         for (ManagedBundle managedBundle : managedBundles) {
             Maybe<Bundle> bundle = osgiManager.get().findBundle(managedBundle);
             if (bundle.isPresent()) {
@@ -631,10 +629,7 @@ public class CatalogInitialization implements 
ManagementContextInjectable {
                         + "ignoring when calculating persisted state catalog 
upgrades");
             }
         }
-        started.stop();
-        log.info("Loaded managed bundles in " + 
started.elapsed(TimeUnit.MILLISECONDS) + "ms");
 
-        final Stopwatch allbundleStopWatch = Stopwatch.createStarted();
         for (Bundle bundle : 
osgiManager.get().getFramework().getBundleContext().getBundles()) {
             final RegisteredTypesSupplier typeSupplier =
                     new RegisteredTypesSupplier(managementContext,
@@ -643,8 +638,6 @@ public class CatalogInitialization implements 
ManagementContextInjectable {
                     
BundleUpgradeParser.parseBundleManifestForCatalogUpgrades(bundle, typeSupplier);
             catalogUpgradesBuilder.addAll(catalogUpgrades);
         }
-        allbundleStopWatch.stop();
-        log.info("Loaded all bundles in " + 
allbundleStopWatch.elapsed(TimeUnit.MILLISECONDS) + "ms");
 
         return catalogUpgradesBuilder.build();
     }

Reply via email to