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". |
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 |