Perform trace factor reduction as a separate step
[lttv.git] / lttv / modules / text / sync_chain_batch.c
index 55abb676c946678a29fcd552c6d1a1f5f6fe6f2d..11c4f6368919f3e48b5da1c9ce1d30ddb0e0548f 100644 (file)
@@ -284,7 +284,6 @@ void setupSyncChain(LttvTracesetContext* const traceSetContext)
        struct TracesetChainState* tracesetChainState;
        SyncState* syncState;
        GList* result;
-       int retval;
 
        tracesetChainState= g_hash_table_lookup(tracesetChainStates, traceSetContext);
        syncState= malloc(sizeof(SyncState));
@@ -339,13 +338,12 @@ void teardownSyncChain(LttvTracesetContext* const traceSetContext)
        SyncState* syncState;
        struct timeval endTime;
        struct rusage endUsage;
-       unsigned int i, j;
        int retval;
 
        tracesetChainState= g_hash_table_lookup(tracesetChainStates, traceSetContext);
        syncState= tracesetChainState->syncState;
 
-       syncState->processingModule->finalizeProcessing(syncState);
+       freeAllFactors(syncState->processingModule->finalizeProcessing(syncState));
 
        // Write graphs file
        if (optionEvalGraphs)
@@ -360,19 +358,6 @@ void teardownSyncChain(LttvTracesetContext* const traceSetContext)
 
        printStats(syncState);
 
-       printf("Resulting synchronization factors:\n");
-    for (i= 0; i < syncState->traceNb; i++)
-    {
-        LttTrace* t;
-
-        t= traceSetContext->traces[i]->t;
-
-        printf("\ttrace %u drift= %g offset= %g (%f) start time= %ld.%09ld\n",
-            i, t->drift, t->offset, (double) tsc_to_uint64(t->freq_scale,
-                t->start_freq, t->offset) / NANOSECONDS_PER_SECOND,
-            t->start_time_from_tsc.tv_sec, t->start_time_from_tsc.tv_nsec);
-    }
-
        syncState->processingModule->destroyProcessing(syncState);
        if (syncState->matchingModule != NULL)
        {
This page took 0.022999 seconds and 4 git commands to generate.