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