From 1eb8774e5adf92892d6f22be174fb13222aaf793 Mon Sep 17 00:00:00 2001 From: Andreas Kohlbecker Date: Wed, 2 Sep 2009 10:06:26 +0000 Subject: [PATCH] yourkit profiler --- .../faunaEuropaea/FaunaEuropaeaRelTaxonIncludeImport.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/faunaEuropaea/FaunaEuropaeaRelTaxonIncludeImport.java b/cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/faunaEuropaea/FaunaEuropaeaRelTaxonIncludeImport.java index b3befe46fe..4479c25f97 100644 --- a/cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/faunaEuropaea/FaunaEuropaeaRelTaxonIncludeImport.java +++ b/cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/faunaEuropaea/FaunaEuropaeaRelTaxonIncludeImport.java @@ -159,7 +159,6 @@ public class FaunaEuropaeaRelTaxonIncludeImport extends FaunaEuropaeaImportBase boolean success = true; - ProfilerController.memorySnapshot(); Map> stores = state.getStores(); MapWrapper taxonStore = (MapWrapper)stores.get(ICdmIO.TAXON_STORE); @@ -171,14 +170,14 @@ public class FaunaEuropaeaRelTaxonIncludeImport extends FaunaEuropaeaImportBase // TransactionStatus txStatus = startTransaction(); - success = retrieveChildParentUuidMap(state); ProfilerController.memorySnapshot(); + success = retrieveChildParentUuidMap(state); success = createRelationships(state); + ProfilerController.memorySnapshot(); // commitTransaction(txStatus); logger.info("End making taxa..."); - ProfilerController.memorySnapshot(); return success; } @@ -574,6 +573,9 @@ public class FaunaEuropaeaRelTaxonIncludeImport extends FaunaEuropaeaImportBase } for (int j = 1; j <= nbrOfBlocks + 1; j++) { + + ProfilerController.memorySnapshot(); + int offset = j - 1; int start = offset * limit; -- 2.34.1