|
1 // Copyright (c) 2007-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 // Ost Performance Tests API Test Object |
|
15 // |
|
16 |
|
17 |
|
18 |
|
19 /** |
|
20 @file te_perfapicall.h |
|
21 @internalTechnology |
|
22 @prototype |
|
23 */ |
|
24 |
|
25 #ifndef TE_UPTAPICALLTESTS_H |
|
26 #define TE_UPTAPICALLTESTS_H |
|
27 |
|
28 #ifndef __KERNEL_MODE__ |
|
29 #include <e32base.h> |
|
30 #include <f32file.h> |
|
31 #endif |
|
32 #include <opensystemtrace.h> |
|
33 #include "te_tracecontrolcmds.h" |
|
34 #include "te_apirunconfig.h" |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 class CApiCallTest: public CBase |
|
40 { |
|
41 public: |
|
42 CApiCallTest(); |
|
43 ~CApiCallTest(); |
|
44 //could get rid of this now if you want... |
|
45 TInt DoTestL(const TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult); |
|
46 TInt CachedTraceTime(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult); |
|
47 TInt NonCachedTraceTime(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult); |
|
48 TInt StackUsage(TApiRunConfig& aApiRunConfig, TApiTestResult& aApiTestResult); |
|
49 |
|
50 TInt Test(); |
|
51 private: |
|
52 //performance test functions |
|
53 //e.g. |
|
54 // ApiTestResult fred; |
|
55 // fred.minexecutintime = 009; |
|
56 // return fred; |
|
57 TInt FlushTheCache(); |
|
58 //could really tidy these up to just 2routines now - leave for now tho |
|
59 |
|
60 //TInt TraceBaselineTime(const TApiRunConfig& aApiRunConfig, TUint64& aBaselineTime, TBool aDoTrace); |
|
61 //TInt TraceTime(const TApiRunConfig& aApiRunConfig, TUint64& aTime, const TUint64& aBaselineTime, TBool aDoTrace); |
|
62 TInt CachedTraceBaselineTime(TApiRunConfig& aApiRunConfig, TInt32& aMinimumExecutionBaselineTime); |
|
63 TInt CachedTraceTime(TApiRunConfig& aApiRunConfig, TInt32& aMinimumExecutionTime, TInt32& aMinimumExecutionBaselineTime); |
|
64 TInt NonCachedTraceBaselineTime(TApiRunConfig& aApiRunConfig, TInt32& aTypicalExecutionBaselineTime); |
|
65 TInt NonCachedTraceTime(TApiRunConfig& aApiRunConfig, TInt32& aTypicalExecutionTime, TInt32& aTypicalExecutionBaselineTime); |
|
66 |
|
67 TInt StackUsage(TApiRunConfig& aApiRunConfig, TInt& aApiStackUsage); |
|
68 |
|
69 TInt HeapUsage(TInt& aApiHeapUsage); |
|
70 TInt DoTheApiCall(); |
|
71 TInt DoTheCommentedApiCall(); |
|
72 |
|
73 //any tests for the private functions |
|
74 TInt TestStackUsage(); |
|
75 |
|
76 // TApiTestResult iApiTestResult; |
|
77 }; |
|
78 |
|
79 #endif |
|
80 |
|
81 |