Perform trace factor reduction as a separate step
[lttv.git] / lttv / lttv / sync / sync_chain_lttv.c
index 0180e3b01a0ee54e1c2c3de64a6eafb66d0120c2..b9f87e913350fea79f24912cb3fb6ef948d53e6f 100644 (file)
@@ -181,6 +181,7 @@ bool syncTraceset(LttvTracesetContext* const traceSetContext)
        struct rusage startUsage, endUsage;
        GList* result;
        unsigned int i;
+       AllFactors* allFactors;
        GArray* factors;
        double minOffset, minDrift;
        unsigned int refFreqTrace;
@@ -268,8 +269,10 @@ bool syncTraceset(LttvTracesetContext* const traceSetContext)
                G_MAXULONG, NULL);
        lttv_process_traceset_seek_time(traceSetContext, ltt_time_zero);
 
-       // Obtain, adjust and set correction factors
-       factors= syncState->processingModule->finalizeProcessing(syncState);
+       // Obtain, reduce, adjust and set correction factors
+       allFactors= syncState->processingModule->finalizeProcessing(syncState);
+       factors= reduceFactors(allFactors);
+       freeAllFactors(allFactors);
 
        /* The offsets are adjusted so the lowest one is 0. This is done because
         * of a Lttv specific limitation: events cannot have negative times. By
This page took 0.022658 seconds and 4 git commands to generate.