graphicstest/graphicstestharness/inc/tprofiler.h
changeset 36 01a6848ebfd7
parent 0 5d03bc08d59c
child 69 3365349494cc
equal deleted inserted replaced
0:5d03bc08d59c 36:01a6848ebfd7
    35     IMPORT_C ~CTProfiler();
    35     IMPORT_C ~CTProfiler();
    36     IMPORT_C void StartTimer();
    36     IMPORT_C void StartTimer();
    37     IMPORT_C TInt64 StopTimer();
    37     IMPORT_C TInt64 StopTimer();
    38     IMPORT_C void InitResults();
    38     IMPORT_C void InitResults();
    39     IMPORT_C void MarkResultSetL();
    39     IMPORT_C void MarkResultSetL();
       
    40     IMPORT_C void MarkResultSetAndSuspendL();
    40     IMPORT_C TUint32 GetTrimedMean();
    41     IMPORT_C TUint32 GetTrimedMean();
    41     IMPORT_C TUint32 Mean();
    42     IMPORT_C TUint32 Mean();
    42     IMPORT_C TInt PercentageChange(TInt aFirstTime, TInt aSecondTime);
    43     IMPORT_C TInt PercentageChange(TInt aFirstTime, TInt aSecondTime);
    43     IMPORT_C void ResultsAnalysis(const TDesC & aTestName, TInt aRotation, TInt aSrcScreenMode, TInt aDstScreenMode, TInt aIters);
    44     IMPORT_C void ResultsAnalysis(const TDesC & aTestName, TInt aRotation, TInt aSrcScreenMode, TInt aDstScreenMode, TInt aIters);
    44     IMPORT_C void ResultsAnalysisPixelRate(const TDesC & aTestName, TInt aRotation, TInt aSrcScreenMode, TInt aDstScreenMode, TInt aIters, TInt aNumPixels);
    45     IMPORT_C void ResultsAnalysisPixelRate(const TDesC & aTestName, TInt aRotation, TInt aSrcScreenMode, TInt aDstScreenMode, TInt aIters, TInt aNumPixels);
    47     IMPORT_C void ResultsAnalysisAverageByNumberOfIterations(const TDesC& aTestName, TInt aRotation, TInt aSrcScreenMode, TInt aDstScreenMode, TInt aIters);
    48     IMPORT_C void ResultsAnalysisAverageByNumberOfIterations(const TDesC& aTestName, TInt aRotation, TInt aSrcScreenMode, TInt aDstScreenMode, TInt aIters);
    48     IMPORT_C void ResultsAnalysisFrameRate(const TDesC & aTestName, TInt aRotation, TInt aSrcScreenMode, TInt aDstScreenMode, TInt aIters, TInt aNumPixels);
    49     IMPORT_C void ResultsAnalysisFrameRate(const TDesC & aTestName, TInt aRotation, TInt aSrcScreenMode, TInt aDstScreenMode, TInt aIters, TInt aNumPixels);
    49     IMPORT_C void ResultsAnalysisScreenRotationRate(const TDesC & aTestName, TInt aRotation, TInt aSrcScreenMode, TInt aDstScreenMode, TInt aIters, TInt aNumPixels);
    50     IMPORT_C void ResultsAnalysisScreenRotationRate(const TDesC & aTestName, TInt aRotation, TInt aSrcScreenMode, TInt aDstScreenMode, TInt aIters, TInt aNumPixels);
    50     IMPORT_C void ResultsAnalysisZorderSwitchingRate(const TDesC & aTestName, TInt aZorderSwitching, TInt aSrcScreenMode, TInt aDstScreenMode, TInt aIters, TInt aNumPixels);
    51     IMPORT_C void ResultsAnalysisZorderSwitchingRate(const TDesC & aTestName, TInt aZorderSwitching, TInt aSrcScreenMode, TInt aDstScreenMode, TInt aIters, TInt aNumPixels);
    51 	IMPORT_C void FreeResultsMemory();
    52 	IMPORT_C void FreeResultsMemory();
       
    53 	IMPORT_C TUint32 TimeMax();
       
    54 	IMPORT_C TUint32 TimeMin();
       
    55 	IMPORT_C void ShowResultArrayInTimingOrder();
       
    56 	IMPORT_C void SetStoreResultInTimingOrder(TBool aStoreResultInTimingOrder);
    52 
    57 
    53 private:
    58 private:
    54     CTProfiler(CTestStep& aTestStep);
    59     CTProfiler(CTestStep& aTestStep);
    55     void ConstructL();
    60     void ConstructL();
    56     TUint32 TimeMax();
    61     
    57     TUint32 TimeMin();
       
    58 private:
    62 private:
    59     TUint32             iStart;
    63     TUint32             iStart;
    60     TUint32             iEnd;
    64     TUint32             iEnd;
    61     TUint32             iDiff;
    65     TUint32             iDiff;
    62     TInt                iFreq;  
    66     TInt                iFreq;  
    63     RArray<TUint32>     iResults;
    67     RArray<TUint32>     iResults;
       
    68     RArray<TUint32>     iResultsTimingOrder;
    64     TBool               iResultsInitalised;
    69     TBool               iResultsInitalised;
    65     CTestStep&          iTestStep;
    70     CTestStep&          iTestStep;
       
    71     TBool               iStoreResultInTimingOrder;
    66     };
    72     };
    67 
    73 
    68 #endif
    74 #endif
    69 
    75 
    70 
    76