Move and update documentation
[lttv.git] / lttv / lttv / sync / factor_reduction.h
index 249b84acce8031c801f8ac26dfd52c81b8faaa91..561df6baccf245d4a7e6c1ac6e0c7fedd37a7217 100644 (file)
@@ -28,13 +28,34 @@ typedef struct
 {
        char* name;
 
+       /*
+        * This function is called at the beginning of a synchronization run for a
+        * set of traces. Allocate some reduction specific data structures.
+        */
        void (*initReduction)(struct _SyncState* const syncState);
+
+       /*
+        * Free the reduction specific data structures
+        */
        void (*destroyReduction)(struct _SyncState* const syncState);
 
+       /*
+        * Convert trace pair synchronization factors to a resulting offset and
+        * drift for each trace.
+        */
        GArray* (*finalizeReduction)(struct _SyncState* const syncState,
                AllFactors* allFactors);
 
+       /*
+        * Print statistics related to reduction. Is always called after
+        * finalizeReduction.
+        */
        void (*printReductionStats)(struct _SyncState* const syncState);
+
+       /*
+        * Write the reduction-specific options and graph commands in the gnuplot
+        * script. Is always called after finalizeReduction.
+        */
        GraphFunctions graphFunctions;
 } ReductionModule;
 
This page took 0.022527 seconds and 4 git commands to generate.