Use a common function to print stats of all modules
[lttv.git] / lttv / lttv / sync / sync_chain.c
index 0d9773fac75633eb0cd1b82beb45edaf8d3a407c..c32f341bd72508a59f1e62117d5816ba3d37b5d1 100644 (file)
@@ -33,6 +33,29 @@ GQueue analysisModules= G_QUEUE_INIT;
 GQueue moduleOptions= G_QUEUE_INIT;
 
 
+/*
+ * Calculate the elapsed time between two timeval values
+ *
+ * Args:
+ *   syncState:    Container for synchronization data
+ */
+void printStats(SyncState* const syncState)
+{
+       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);
+       }
+}
+
+
 /*
  * Calculate the elapsed time between two timeval values
  *
This page took 0.023344 seconds and 4 git commands to generate.