Call the stats and graph functions from sync_chain
[lttv.git] / lttv / lttv / sync / event_analysis_chull.c
index 6f6e3090b1a4623ecff79b9280c26e628a73dea7..41fdbca4c7764a45d19ed463232f8199c7bab709 100644 (file)
@@ -397,8 +397,8 @@ static void analyzeMessageCHull(SyncState* const syncState, Message* const messa
        if (message->inE->traceNum < message->outE->traceNum)
        {
                // CA is inE->traceNum
-               newPoint->x= message->inE->time;
-               newPoint->y= message->outE->time;
+               newPoint->x= message->inE->cpuTime;
+               newPoint->y= message->outE->cpuTime;
                hullType= UPPER;
                g_debug("Reception point hullArray[%lu][%lu] x= inE->time= %llu y= outE->time= %llu",
                        message->inE->traceNum, message->outE->traceNum, newPoint->x,
@@ -407,8 +407,8 @@ static void analyzeMessageCHull(SyncState* const syncState, Message* const messa
        else
        {
                // CA is outE->traceNum
-               newPoint->x= message->outE->time;
-               newPoint->y= message->inE->time;
+               newPoint->x= message->outE->cpuTime;
+               newPoint->y= message->inE->cpuTime;
                hullType= LOWER;
                g_debug("Send point hullArray[%lu][%lu] x= inE->time= %llu y= outE->time= %llu",
                        message->inE->traceNum, message->outE->traceNum, newPoint->x,
@@ -510,7 +510,7 @@ static GArray* finalizeAnalysisCHull(SyncState* const syncState)
 
        analysisData= (AnalysisDataCHull*) syncState->analysisData;
 
-       if (syncState->graphs)
+       if (syncState->graphs && analysisData->graphsData->hullPoints != NULL)
        {
                writeGraphFiles(syncState);
                closeGraphFiles(syncState);
This page took 0.024334 seconds and 4 git commands to generate.