yourkit profiler
authorAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Wed, 2 Sep 2009 10:06:26 +0000 (10:06 +0000)
committerAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Wed, 2 Sep 2009 10:06:26 +0000 (10:06 +0000)
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/faunaEuropaea/FaunaEuropaeaRelTaxonIncludeImport.java

index b3befe46fe3a207c847d0f0061519283285664b5..4479c25f9740e37c50bd22b994bdbb57b5491704 100644 (file)
@@ -159,7 +159,6 @@ public class FaunaEuropaeaRelTaxonIncludeImport extends FaunaEuropaeaImportBase
                boolean success = true;\r
                \r
 \r
-                       ProfilerController.memorySnapshot();\r
                \r
                        Map<String, MapWrapper<? extends CdmBase>> stores = state.getStores();\r
                        MapWrapper<TaxonBase> taxonStore = (MapWrapper<TaxonBase>)stores.get(ICdmIO.TAXON_STORE);\r
@@ -171,14 +170,14 @@ public class FaunaEuropaeaRelTaxonIncludeImport extends FaunaEuropaeaImportBase
                        \r
        //              TransactionStatus txStatus = startTransaction();\r
        \r
-                       success = retrieveChildParentUuidMap(state);\r
                        ProfilerController.memorySnapshot();\r
+                       success = retrieveChildParentUuidMap(state);\r
                        success = createRelationships(state);\r
+                       ProfilerController.memorySnapshot();\r
                        \r
        //              commitTransaction(txStatus);\r
        \r
                        logger.info("End making taxa...");\r
-                       ProfilerController.memorySnapshot();\r
 \r
                return success;\r
        }\r
@@ -574,6 +573,9 @@ public class FaunaEuropaeaRelTaxonIncludeImport extends FaunaEuropaeaImportBase
                }\r
 \r
                for (int j = 1; j <= nbrOfBlocks + 1; j++) {\r
+                       \r
+                       ProfilerController.memorySnapshot();\r
+                       \r
                        int offset = j - 1;\r
                        int start = offset * limit;\r
 \r