diff -r 2717213c588a -r 171fae344dd4 graphicstest/graphicstestharness/src/tprofiler.cpp --- a/graphicstest/graphicstestharness/src/tprofiler.cpp Tue Jun 22 15:21:29 2010 +0300 +++ b/graphicstest/graphicstestharness/src/tprofiler.cpp Fri Jul 16 11:45:55 2010 +0300 @@ -555,3 +555,27 @@ { iStoreResultInTimingOrder = aStoreResultInTimingOrder; } + +/** +Reports analysis results for glyph rates + +@param aTestName is the name of the test case +@param aRotation is the screen rotation being used in the test +@param aSrcScreenMode is the source screen mode being used, +i.e. for bitmap display conversion the source and destinations bitmaps maybe different +@param aDstScreenMode is the destination screen mode (usually the display screen mode) +@param aIters is the number of iterations used in the test +@param aNumGlyphs is the number of glyphs used per iteration +*/ + +EXPORT_C void CTProfiler::ResultsAnalysisGlyphRate(const TDesC & aTestName, TInt aRotation, TInt aSrcScreenMode, TInt aDstScreenMode, TInt aIters, TInt aNumGlyphsPerIteration) + { + PROFILER_TEST(iResultsInitalised); + + TReal time = (iResults.Count() > 0) ? (TReal)iResults[0] / 1000000 : 0; + TInt32 glyphRate = aNumGlyphsPerIteration*aIters/time; + PROFILER_INFO_PRINTF7(_L("TID: %S Rot: %i SrcMode: %i DestMode: %i Iters: %i TrimmedMean: %i glyphs/second"), &aTestName, aRotation, aSrcScreenMode, aDstScreenMode, aIters, glyphRate); + PROFILER_INFO_PRINTF3(_L("Max: %i Min: %i "), TimeMax(), TimeMin()); + iResultsInitalised = EFalse; + } +