Perform factor reduction as a modular step
[lttv.git] / lttv / modules / text / sync_chain_batch.c
index 11c4f6368919f3e48b5da1c9ce1d30ddb0e0548f..31fde5ecff608afbaeaabfb5d769e1a1041086eb 100644 (file)
@@ -306,6 +306,9 @@ void setupSyncChain(LttvTracesetContext* const traceSetContext)
                syncState->graphsDir= NULL;
        }
 
+       syncState->reductionData= NULL;
+       syncState->reductionModule= NULL;
+
        syncState->analysisData= NULL;
        result= g_queue_find_custom(&analysisModules, "eval",
                &gcfCompareAnalysis);
@@ -343,7 +346,8 @@ void teardownSyncChain(LttvTracesetContext* const traceSetContext)
        tracesetChainState= g_hash_table_lookup(tracesetChainStates, traceSetContext);
        syncState= tracesetChainState->syncState;
 
-       freeAllFactors(syncState->processingModule->finalizeProcessing(syncState));
+       freeAllFactors(syncState->processingModule->finalizeProcessing(syncState),
+               syncState->traceNb);
 
        // Write graphs file
        if (optionEvalGraphs)
@@ -367,6 +371,10 @@ void teardownSyncChain(LttvTracesetContext* const traceSetContext)
        {
                syncState->analysisModule->destroyAnalysis(syncState);
        }
+       if (syncState->reductionModule != NULL)
+       {
+               syncState->reductionModule->destroyReduction(syncState);
+       }
 
        free(syncState);
 
This page took 0.026427 seconds and 4 git commands to generate.