traceservices/tracefw/integ_test/ost/TEF/te_ostv2integsuite_performance/inc/te_perfapicall.h
branchRCL_3
changeset 24 cc28652e0254
parent 23 26645d81f48d
equal deleted inserted replaced
23:26645d81f48d 24:cc28652e0254
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2009 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 
    16 
    17 
    17 
    18 
    18 /**
    19 /**
    19  @file te_perfapicall.h
    20  @file te_perfapicall.h
    20  @internalTechnology
    21  @internalTechnology
    31 #include <opensystemtrace.h>
    32 #include <opensystemtrace.h>
    32 #include "te_tracecontrolcmds.h"
    33 #include "te_tracecontrolcmds.h"
    33 #include "te_apirunconfig.h"
    34 #include "te_apirunconfig.h"
    34 
    35 
    35 
    36 
       
    37 
       
    38 
    36 class CApiCallTest: public CBase
    39 class CApiCallTest: public CBase
    37 	{
    40 	{
    38 public:
    41 public:
    39 	CApiCallTest();
    42 	CApiCallTest();
    40 	~CApiCallTest();
    43 	~CApiCallTest();
    41 	//could get rid of this now if you want...
    44 	//could get rid of this now if you want...
    42 	TInt DoTestL(const TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    45 	TInt DoTestL(const TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    43 	TInt CachedTraceTimeL(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    46 	TInt CachedTraceTime(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    44 	TInt NonCachedTraceTimeL(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    47 	TInt NonCachedTraceTime(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    45 	TInt StackUsageL(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    48 	TInt StackUsage(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult);
    46 
    49 
    47 	TInt Test();
    50 	TInt Test();
    48 private:
    51 private:
    49 //performance test functions
    52 //performance test functions
    50 //e.g.
    53 //e.g.
    54 	TInt FlushTheCache();
    57 	TInt FlushTheCache();
    55 	//could really tidy these up to just 2routines now - leave for now tho
    58 	//could really tidy these up to just 2routines now - leave for now tho
    56 
    59 
    57 	//TInt TraceBaselineTime(const TApiRunConfig& aApiRunConfig, TUint64& aBaselineTime, TBool aDoTrace);
    60 	//TInt TraceBaselineTime(const TApiRunConfig& aApiRunConfig, TUint64& aBaselineTime, TBool aDoTrace);
    58 	//TInt TraceTime(const TApiRunConfig& aApiRunConfig, TUint64& aTime, const TUint64& aBaselineTime, TBool aDoTrace);
    61 	//TInt TraceTime(const TApiRunConfig& aApiRunConfig, TUint64& aTime, const TUint64& aBaselineTime, TBool aDoTrace);
    59 	TInt CachedTraceBaselineTimeL(TApiRunConfig& aApiRunConfig, TInt32& aMinimumExecutionBaselineTime);
    62 	TInt CachedTraceBaselineTime(TApiRunConfig& aApiRunConfig, TInt32& aMinimumExecutionBaselineTime);
    60 	TInt CachedTraceTimeL(TApiRunConfig& aApiRunConfig, TInt32& aMinimumExecutionTime, TInt32& aMinimumExecutionBaselineTime);
    63 	TInt CachedTraceTime(TApiRunConfig& aApiRunConfig, TInt32& aMinimumExecutionTime, TInt32& aMinimumExecutionBaselineTime);
    61 	TInt NonCachedTraceBaselineTimeL(TApiRunConfig& aApiRunConfig, TInt32& aTypicalExecutionBaselineTime);
    64 	TInt NonCachedTraceBaselineTime(TApiRunConfig& aApiRunConfig, TInt32& aTypicalExecutionBaselineTime);
    62 	TInt NonCachedTraceTimeL(TApiRunConfig& aApiRunConfig, TInt32& aTypicalExecutionTime, TInt32& aTypicalExecutionBaselineTime);
    65 	TInt NonCachedTraceTime(TApiRunConfig& aApiRunConfig, TInt32& aTypicalExecutionTime, TInt32& aTypicalExecutionBaselineTime);
    63 
    66 
    64 	TInt StackUsageL(TApiRunConfig& aApiRunConfig, TInt& aApiStackUsage);
    67 	TInt StackUsage(TApiRunConfig& aApiRunConfig, TInt& aApiStackUsage);
    65 
    68 
    66 	TInt HeapUsage(TInt& aApiHeapUsage);
    69 	TInt HeapUsage(TInt& aApiHeapUsage);
    67 	TInt DoTheApiCall();
    70 	TInt DoTheApiCall();
    68 	TInt DoTheCommentedApiCall();
    71 	TInt DoTheCommentedApiCall();
    69 
    72 
    72 
    75 
    73 //	TApiTestResult iApiTestResult;
    76 //	TApiTestResult iApiTestResult;
    74 	};
    77 	};
    75 
    78 
    76 #endif
    79 #endif
       
    80 
       
    81