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

void Impala::Util::TimeStats::ComputePercentages (  )  [inline]

Definition at line 204 of file TimeStats.h.

References mGrandTotal, mGroups, mRelative, and NrGroups().

Referenced by Print().

00205     {
00206         mGrandTotal = 0;
00207         if (mRelative)
00208         {
00209             mGrandTotal = mGroups[0]->mTotal;
00210         }
00211         else
00212         {
00213             for (int i=0 ; i<NrGroups() ; i++)
00214                 mGrandTotal += mGroups[i]->mTotal;
00215         }
00216         for (int i=0 ; i<NrGroups() ; i++)
00217             mGroups[i]->mPercentage = 100. * mGroups[i]->mTotal / mGrandTotal;
00218     }

Here is the call graph for this function:


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