20
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef PI_PROFILER_CONFIG_H
|
|
20 |
#define PI_PROFILER_CONFIG_H
|
|
21 |
|
|
22 |
/*** NOTE!!!
|
|
23 |
* Uncomment the following definition if compiling the Profiler by your own
|
|
24 |
***/
|
|
25 |
#define PROFILER_SISX
|
|
26 |
|
|
27 |
/*
|
|
28 |
*
|
|
29 |
* Filename and path for the settings file
|
|
30 |
* this file is written on application exit and
|
|
31 |
* it contains the settings of the profiler application
|
|
32 |
*
|
|
33 |
*/
|
|
34 |
|
|
35 |
// #define PROFILER_SETTINGS_DRIVE _L("C:\\")
|
|
36 |
// #define PROFILER_SETTINGS_MAXLENGTH 32
|
|
37 |
// #define PROFILER_SETTINGS_FILENAME _L("ProfilerSettings.txt")
|
|
38 |
const TInt KProfilerSettingsMaxLength = 32;
|
|
39 |
_LIT(KProfilerSettingsFileName, "PIProfilerSettings.txt");
|
|
40 |
|
|
41 |
// a fix for going through the different drives for settings file
|
|
42 |
#define PROFILER_SETTINGS_DRIVE_COUNT 3
|
|
43 |
#define PROFILER_SETTINGS_DRIVE_ARRAY TBuf<4> settingsDrives[PROFILER_SETTINGS_DRIVE_COUNT];
|
|
44 |
#define PROFILER_DEFINE_SETTINGS_DRIVE(name,number) settingsDrives[number].Append(_L(name));
|
|
45 |
|
|
46 |
// change these to reflect the drive names and numbers
|
|
47 |
// the last number must be PROFILER_SETTINGS_DRIVE_COUNT-1
|
|
48 |
#define PROFILER_SETTINGS_DRIVES PROFILER_DEFINE_SETTINGS_DRIVE("C:\\",0) \
|
|
49 |
PROFILER_DEFINE_SETTINGS_DRIVE("E:\\",1) \
|
|
50 |
PROFILER_DEFINE_SETTINGS_DRIVE("Z:\\",2)
|
|
51 |
|
|
52 |
/*
|
|
53 |
*
|
|
54 |
* Locations of PI Profiler binaries
|
|
55 |
*
|
|
56 |
*/
|
|
57 |
|
|
58 |
#define PROFILERENGINE_EXE_PATH_PRIMARY _L("C:\\sys\\bin\\PIProfilerEngine.exe")
|
|
59 |
#define PROFILERENGINE_EXE_PATH_SECONDARY _L("Z:\\sys\\bin\\PIProfilerEngine.exe")
|
|
60 |
|
|
61 |
/*
|
|
62 |
*
|
|
63 |
* PI Profiler tool composition definitions
|
|
64 |
*
|
|
65 |
*/
|
|
66 |
|
|
67 |
// sampler codes and names
|
|
68 |
#define PROFILER_USER_MODE_SAMPLER 123
|
|
69 |
#define PROFILER_KERNEL_MODE_SAMPLER 321
|
|
70 |
#define PROFILER_DUMMY_SAMPLER 213
|
|
71 |
|
|
72 |
// old definitions
|
|
73 |
#define PROFILER_GENERALS_SAMPLER_ID 100
|
|
74 |
#define PROFILER_INTERNALS_SAMPLER_ID 101
|
|
75 |
#define PROFILER_GPP_SAMPLER_ID 1
|
|
76 |
#define PROFILER_GFC_SAMPLER_ID 2
|
|
77 |
#define PROFILER_ITT_SAMPLER_ID 3
|
|
78 |
#define PROFILER_MEM_SAMPLER_ID 4
|
|
79 |
#define PROFILER_PRI_SAMPLER_ID 5
|
|
80 |
#define PROFILER_IRQ_SAMPLER_ID 6
|
|
81 |
#define PROFILER_BUP_SAMPLER_ID 7
|
|
82 |
#define PROFILER_SWI_SAMPLER_ID 8
|
|
83 |
#define PROFILER_TIP_SAMPLER_ID 9
|
|
84 |
#define PROFILER_PEC_SAMPLER_ID 10
|
|
85 |
#define PROFILER_PWR_SAMPLER_ID 11
|
|
86 |
#define PROFILER_IPC_SAMPLER_ID 12
|
|
87 |
#define PROFILER_ISA_SAMPLER_ID 13
|
|
88 |
#define PROFILER_GPU_SAMPLER_ID 14
|
|
89 |
|
|
90 |
// sampler IDs for external, e.g. 3rd party sampler plug-ins
|
|
91 |
#define PROFILER_EXT1_SAMPLER_ID 15
|
|
92 |
#define PROFILER_EXT2_SAMPLER_ID 16
|
|
93 |
#define PROFILER_EXT3_SAMPLER_ID 17
|
|
94 |
#define PROFILER_EXT4_SAMPLER_ID 18
|
|
95 |
#define PROFILER_EXT5_SAMPLER_ID 19
|
|
96 |
|
|
97 |
#define PROFILER_GPP_SAMPLER_NAME _L("GPP")
|
|
98 |
#define PROFILER_GFC_SAMPLER_NAME _L("GFC")
|
|
99 |
#define PROFILER_ITT_SAMPLER_NAME _L("ITT")
|
|
100 |
#define PROFILER_MEM_SAMPLER_NAME _L("MEM")
|
|
101 |
#define PROFILER_PRI_SAMPLER_NAME _L("PRI")
|
|
102 |
#define PROFILER_GPU_SAMPLER_NAME _L("GPU")
|
|
103 |
|
|
104 |
#endif
|