graphicstest/graphicstestharness/src/tprofiler.cpp
changeset 116 171fae344dd4
parent 69 3365349494cc
child 136 62bb7c97884c
equal deleted inserted replaced
103:2717213c588a 116:171fae344dd4
   553  */
   553  */
   554 EXPORT_C void CTProfiler::SetStoreResultInTimingOrder(TBool aStoreResultInTimingOrder)
   554 EXPORT_C void CTProfiler::SetStoreResultInTimingOrder(TBool aStoreResultInTimingOrder)
   555     {
   555     {
   556     iStoreResultInTimingOrder = aStoreResultInTimingOrder;
   556     iStoreResultInTimingOrder = aStoreResultInTimingOrder;
   557     }
   557     }
       
   558 
       
   559 /**
       
   560 Reports analysis results for glyph rates
       
   561 
       
   562 @param aTestName is the name of the test case
       
   563 @param aRotation is the screen rotation being used in the test
       
   564 @param aSrcScreenMode is the source screen mode being used, 
       
   565 i.e. for bitmap display conversion the source and destinations bitmaps maybe different
       
   566 @param aDstScreenMode is the destination screen mode (usually the display screen mode)
       
   567 @param aIters is the number of iterations used in the test
       
   568 @param aNumGlyphs is the number of glyphs used per iteration
       
   569 */
       
   570 
       
   571 EXPORT_C void CTProfiler::ResultsAnalysisGlyphRate(const TDesC & aTestName, TInt aRotation, TInt aSrcScreenMode, TInt aDstScreenMode, TInt aIters, TInt aNumGlyphsPerIteration)
       
   572     {
       
   573     PROFILER_TEST(iResultsInitalised);
       
   574 
       
   575     TReal time = (iResults.Count() > 0) ? (TReal)iResults[0] / 1000000 : 0;
       
   576     TInt32 glyphRate = aNumGlyphsPerIteration*aIters/time;
       
   577     PROFILER_INFO_PRINTF7(_L("TID:   %S  Rot:    %i  SrcMode:    %i  DestMode:   %i  Iters: %i   TrimmedMean:    %i  glyphs/second"), &aTestName, aRotation, aSrcScreenMode, aDstScreenMode, aIters, glyphRate);
       
   578     PROFILER_INFO_PRINTF3(_L("Max:   %i  Min:    %i  "), TimeMax(), TimeMin());
       
   579     iResultsInitalised = EFalse;
       
   580   }
       
   581