64
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: alfperfapp application constants.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef ALFPERFAPPCOSNTANTS_H
|
|
20 |
#define ALFPERFAPPCOSNTANTS_H
|
|
21 |
|
|
22 |
#include <e32std.h>
|
|
23 |
|
|
24 |
/**
|
|
25 |
* View ID of test case selection view.
|
|
26 |
*/
|
|
27 |
const TUid KAlfPerfAppTestCaseSelectionViewId = { 0x1 };
|
|
28 |
|
|
29 |
/**
|
|
30 |
* View ID of test case execution view.
|
|
31 |
*/
|
|
32 |
const TUid KAlfPerfAppTestCaseExecutionViewId = { 0x2 };
|
|
33 |
|
|
34 |
/**
|
|
35 |
* View ID of test case results view.
|
|
36 |
*/
|
|
37 |
const TUid KAlfPerfAppTestCaseResultsViewId = { 0x1 };
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
// Some constants for handling printing info
|
|
45 |
_LIT(KAlfPerfAppFontName,"Courier");
|
|
46 |
const TUint KAlfPerfAppLeftMargin = 2;
|
|
47 |
const TUint KAlfPerfAppRightMargin = 2;
|
|
48 |
const TInt KAlfPerfAppFontSizeInTwips = 125;
|
|
49 |
const TInt KAlfPerfAppMaxCharsInLine = 256;
|
|
50 |
const TInt KAlfPerfScreenTextBufferSize = 200000;
|
|
51 |
const TInt KAlfPerfScreenWrappedArraySize = 500;
|
|
52 |
|
|
53 |
|
|
54 |
// Default paths for output file
|
|
55 |
_LIT(KAlfPerfAppOutputFilePath1, "c:\\data\\others");
|
|
56 |
_LIT(KAlfPerfAppOutputFilePath2, "e:\\others");
|
|
57 |
//_LIT(KAlfPerfAppOutputFilePath2, "c:\\data\\others"); // DEBUG
|
|
58 |
_LIT( KAlfPerfAppPrintPathSeparator, "\\" );
|
|
59 |
_LIT(KAlfPerfAppOutputFileName, "AlfPerfAppResults.csv");
|
|
60 |
_LIT(KAlfPerfAppSummaryFileName, "AlfPerfAppSummary.csv");
|
|
61 |
|
|
62 |
_LIT8( KAlfPerfAppPrintFormatHeader,
|
|
63 |
"suite/case,caseid,phase,time,app cells,app ram usage,app ram free,server cells,server ram usage,server ram free,system ram usage,system ram free,frames since phase,ms since case,ms since phase,fps,casespecificresult\n");
|
|
64 |
_LIT8( KAlfPerfAppPrintFormatData,
|
|
65 |
"%S / %S,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%d,%f,%S\x0D\x0A");
|
|
66 |
|
|
67 |
_LIT8( KAlfPerfAppSummaryPrintFormatHeader,
|
|
68 |
"suite/case,caseid,phase,app ram delta,server ram delta,system ram delta,frames since phase,ms since phase,fps,casespecificresult\n");
|
|
69 |
_LIT8( KAlfPerfAppSummaryPrintFormatData,
|
|
70 |
"%S / %S,%d,%d,%d,%d,%d,%d,%d,%f,%S\x0D\x0A");
|
|
71 |
|
|
72 |
/*
|
|
73 |
* Descriptor to store test-case specific result data.
|
|
74 |
*/
|
|
75 |
const TInt KAlfPerfAppMaxCharsInSpecificResultText = 256;
|
|
76 |
typedef HBufC* TTestCaseSpecificResultText;
|
|
77 |
|
|
78 |
|
|
79 |
|
|
80 |
|
|
81 |
|
|
82 |
#endif // ALFPERFAPPCOSNTANTS_H
|
|
83 |
|
|
84 |
// End of File
|