persistentstorage/centralrepository/test/testexecute/performance/inc/TE_MemTestStep.h
branchRCL_3
changeset 24 cc28652e0254
parent 0 08ec8eefde2f
equal deleted inserted replaced
23:26645d81f48d 24:cc28652e0254
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15  
       
    16 #ifndef __TE_MEMTESTSTEP_H__
       
    17 #define __TE_MEMTESTSTEP_H__
       
    18 
       
    19 #include <test/testexecutestepbase.h>
       
    20 
       
    21 _LIT(KMemTestName, "CentRepMemTestLogger");
       
    22 
       
    23 #ifdef __CENTREP_SERVER_MEMTEST__
       
    24 // Class for storing initial and final heap size readings for specific
       
    25 // location and identifier
       
    26 class TMemTestResult
       
    27 	{
       
    28 public:
       
    29 	inline TMemTestResult(TInt32 aLocation, TInt32 aIdentifier, TBool aIsComplete) 
       
    30 		: iLocation(aLocation), iIdentifier(aIdentifier), iIsComplete(aIsComplete) { }
       
    31 	//location where the memory reading is done
       
    32 	TInt32 iLocation;
       
    33 	//identifier of the memory reading (e.g. repository id, 10th reading etc)
       
    34 	TInt32 iIdentifier;
       
    35 	//whether both initial and final heap size readings are valid
       
    36 	TBool iIsComplete;
       
    37 	//heap size before the operation starts
       
    38 	TInt32 iInitHeapSize;
       
    39 	//heap size after the operation ends
       
    40 	TInt32 iFinalHeapSize;
       
    41 	};
       
    42 #endif //__CENTREP_SERVER_MEMTEST__
       
    43 	
       
    44 class CMemTestStep : public CTestStep
       
    45 	{
       
    46 public:
       
    47 	CMemTestStep();
       
    48 	virtual TVerdict doTestStepL(void);
       
    49 protected:
       
    50 #ifdef __CENTREP_SERVER_MEMTEST__
       
    51 	virtual void ProcessMemTestResults(TAny* aRawData, TInt32 aRawCount, RArray<TMemTestResult>& aMemTestResults);
       
    52 #endif //__CENTREP_SERVER_MEMTEST__
       
    53 	};
       
    54 
       
    55 #endif // __TE_MEMTESTSTEP_H__