Use a common function to print stats of all modules
[lttv.git] / lttv / modules / text / sync_chain_batch.c
index c88b13c5962623fdf3491829d9e1c0bf4f91ae8a..55abb676c946678a29fcd552c6d1a1f5f6fe6f2d 100644 (file)
@@ -291,6 +291,7 @@ void setupSyncChain(LttvTracesetContext* const traceSetContext)
        tracesetChainState->syncState= syncState;
        syncState->traceNb= lttv_traceset_number(traceSetContext->ts);
 
+       // Statistics are always on with eval
        syncState->stats= true;
 
        if (optionEvalGraphs)
@@ -357,18 +358,7 @@ void teardownSyncChain(LttvTracesetContext* const traceSetContext)
                }
        }
 
-       if (syncState->processingModule->printProcessingStats != NULL)
-       {
-               syncState->processingModule->printProcessingStats(syncState);
-       }
-       if (syncState->matchingModule->printMatchingStats != NULL)
-       {
-               syncState->matchingModule->printMatchingStats(syncState);
-       }
-       if (syncState->analysisModule->printAnalysisStats != NULL)
-       {
-               syncState->analysisModule->printAnalysisStats(syncState);
-       }
+       printStats(syncState);
 
        printf("Resulting synchronization factors:\n");
     for (i= 0; i < syncState->traceNb; i++)
This page took 0.022093 seconds and 4 git commands to generate.