struct timeval startTime, endTime;
struct rusage startUsage, endUsage;
GList* result;
+ GArray* factors;
int retval;
bool stats;
const char* testCaseName;
GString* analysisModulesNames;
unsigned int id;
- GArray* factors;
+ AllFactors* allFactors;
/*
* Initialize event modules
syncState->analysisModule->initAnalysis(syncState);
// Process traceset
- factors= syncState->processingModule->finalizeProcessing(syncState);
- g_array_free(factors, TRUE);
+ allFactors= syncState->processingModule->finalizeProcessing(syncState);
+ factors= reduceFactors(allFactors);
+ freeAllFactors(allFactors);
// Write graphs file
if (syncState->graphsStream)
}
// Print statistics
- if (syncState->stats)
+ if (optionSyncStats.present)
{
+ unsigned int i;
+
printStats(syncState);
+
+ printf("Resulting synchronization factors:\n");
+ for (i= 0; i < factors->len; i++)
+ {
+ Factors* traceFactors= &g_array_index(factors, Factors, i);
+ printf("\ttrace %u drift= %g offset= %g\n", i,
+ traceFactors->drift, traceFactors->offset);
+ }
}
// Destroy modules and clean up
/*
- * Read program arguments dans update ModuleOptions structures
+ * Read program arguments and update ModuleOptions structures
*
* Args:
* argc, argv: standard argument arrays