traceservices/tracefw/integ_test/ost/TEF/te_ostv2integsuite_performance/inc/te_perfapicall.h
branchRCL_3
changeset 23 26645d81f48d
parent 0 08ec8eefde2f
child 24 cc28652e0254
equal deleted inserted replaced
21:28839de615b4 23:26645d81f48d
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 // Ost Performance Tests API Test Object
    14 // Ost Performance Tests API Test Object
    15 //
    15 //
    16 
       
    17 
    16 
    18 
    17 
    19 /**
    18 /**
    20  @file te_perfapicall.h
    19  @file te_perfapicall.h
    21  @internalTechnology
    20  @internalTechnology
    32 #include <opensystemtrace.h>
    31 #include <opensystemtrace.h>
    33 #include "te_tracecontrolcmds.h"
    32 #include "te_tracecontrolcmds.h"
    34 #include "te_apirunconfig.h"
    33 #include "te_apirunconfig.h"
    35 
    34 
    36 
    35 
    37 
       
    38 
       
    39 class CApiCallTest: public CBase
    36 class CApiCallTest: public CBase
    40 	{
    37 	{
    41 public:
    38 public:
    42 	CApiCallTest();
    39 	CApiCallTest();
    43 	~CApiCallTest();
    40 	~CApiCallTest();
    44 	//could get rid of this now if you want...
    41 	//could get rid of this now if you want...
    45 	TInt DoTestL(const TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    42 	TInt DoTestL(const TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    46 	TInt CachedTraceTime(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    43 	TInt CachedTraceTimeL(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    47 	TInt NonCachedTraceTime(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    44 	TInt NonCachedTraceTimeL(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    48 	TInt StackUsage(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    45 	TInt StackUsageL(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    49 
    46 
    50 	TInt Test();
    47 	TInt Test();
    51 private:
    48 private:
    52 //performance test functions
    49 //performance test functions
    53 //e.g.
    50 //e.g.
    57 	TInt FlushTheCache();
    54 	TInt FlushTheCache();
    58 	//could really tidy these up to just 2routines now - leave for now tho
    55 	//could really tidy these up to just 2routines now - leave for now tho
    59 
    56 
    60 	//TInt TraceBaselineTime(const TApiRunConfig& aApiRunConfig, TUint64& aBaselineTime, TBool aDoTrace);
    57 	//TInt TraceBaselineTime(const TApiRunConfig& aApiRunConfig, TUint64& aBaselineTime, TBool aDoTrace);
    61 	//TInt TraceTime(const TApiRunConfig& aApiRunConfig, TUint64& aTime, const TUint64& aBaselineTime, TBool aDoTrace);
    58 	//TInt TraceTime(const TApiRunConfig& aApiRunConfig, TUint64& aTime, const TUint64& aBaselineTime, TBool aDoTrace);
    62 	TInt CachedTraceBaselineTime(TApiRunConfig& aApiRunConfig, TInt32& aMinimumExecutionBaselineTime);
    59 	TInt CachedTraceBaselineTimeL(TApiRunConfig& aApiRunConfig, TInt32& aMinimumExecutionBaselineTime);
    63 	TInt CachedTraceTime(TApiRunConfig& aApiRunConfig, TInt32& aMinimumExecutionTime, TInt32& aMinimumExecutionBaselineTime);
    60 	TInt CachedTraceTimeL(TApiRunConfig& aApiRunConfig, TInt32& aMinimumExecutionTime, TInt32& aMinimumExecutionBaselineTime);
    64 	TInt NonCachedTraceBaselineTime(TApiRunConfig& aApiRunConfig, TInt32& aTypicalExecutionBaselineTime);
    61 	TInt NonCachedTraceBaselineTimeL(TApiRunConfig& aApiRunConfig, TInt32& aTypicalExecutionBaselineTime);
    65 	TInt NonCachedTraceTime(TApiRunConfig& aApiRunConfig, TInt32& aTypicalExecutionTime, TInt32& aTypicalExecutionBaselineTime);
    62 	TInt NonCachedTraceTimeL(TApiRunConfig& aApiRunConfig, TInt32& aTypicalExecutionTime, TInt32& aTypicalExecutionBaselineTime);
    66 
    63 
    67 	TInt StackUsage(TApiRunConfig& aApiRunConfig, TInt& aApiStackUsage);
    64 	TInt StackUsageL(TApiRunConfig& aApiRunConfig, TInt& aApiStackUsage);
    68 
    65 
    69 	TInt HeapUsage(TInt& aApiHeapUsage);
    66 	TInt HeapUsage(TInt& aApiHeapUsage);
    70 	TInt DoTheApiCall();
    67 	TInt DoTheApiCall();
    71 	TInt DoTheCommentedApiCall();
    68 	TInt DoTheCommentedApiCall();
    72 
    69 
    75 
    72 
    76 //	TApiTestResult iApiTestResult;
    73 //	TApiTestResult iApiTestResult;
    77 	};
    74 	};
    78 
    75 
    79 #endif
    76 #endif
    80 
       
    81