Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Util::TimePlot::PrintAverageSplit ( FILE *  fp,
int  timer,
int  split 
) [inline]

Definition at line 73 of file TimePlot.h.

References GetPtr(), mNrFunctions, mNrRuns, mNrSplitTimes, mNrXCoords, and mXCoords.

Referenced by DoSaveData(), and PrintAverageFinal().

00074     {
00075         fprintf(fp, "\n\n# Average of split %d using timer mode %d\n",
00076                 split, timer);
00077         if (split == mNrSplitTimes)
00078             fprintf(fp, "# This split is actually the end time\n");
00079         for (int x=0 ; x<mNrXCoords ; x++)
00080         {
00081             fprintf(fp, "%d", mXCoords[x]);
00082             for (int f=0 ; f<mNrFunctions ; f++)
00083             {
00084                 double avg = 0;
00085                 for (int r=0 ; r<mNrRuns ; r++)
00086                     avg += *GetPtr(timer, f, x, split, r);
00087                 avg /= mNrRuns;
00088                 fprintf(fp, "\t%f", avg);
00089             }
00090             fprintf(fp, "\n");
00091         }
00092     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:24:23 2011 for ImpalaSrc by  doxygen 1.5.1