30 cout<< " - "; |
30 cout<< " - "; |
31 cout<< ATOOL_DATE; |
31 cout<< ATOOL_DATE; |
32 cout<< "\n"; |
32 cout<< "\n"; |
33 cout<< "Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).\nAll rights reserved.\n\n"; |
33 cout<< "Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).\nAll rights reserved.\n\n"; |
34 cout<< "Usage:\n"; |
34 cout<< "Usage:\n"; |
35 cout<< "atool -e [optional parameters] abld [abld parameters]\n"; |
35 cout<< "atool -tr [optional parameters] abld [abld parameters]\n"; |
36 cout<< " -me [optional parameters] abld [abld parameters]\n"; |
36 cout<< " -lf [optional parameters] abld [abld parameters]\n"; |
37 cout<< " -mi [optional parameters] [-f data-file] sbs [sbs parameters]\n"; |
|
38 cout<< " -a data-file [output-file] [-s symbol-file] [-l#]\n"; |
37 cout<< " -a data-file [output-file] [-s symbol-file] [-l#]\n"; |
39 cout<< " -p data-file output-file\n"; |
38 cout<< " -p data-file output-file\n"; |
40 cout<< " -c\n"; |
39 cout<< " -c\n"; |
41 cout<< " -v\n"; |
40 cout<< " -v\n"; |
42 cout<< " -help\n"; |
41 cout<< " -help\n"; |
43 cout<< "\n"; |
42 cout<< "\n"; |
44 cout<< "Mandatory parameter to choose:\n"; |
43 cout<< "Mandatory parameter to choose:\n"; |
45 cout<< " -e Build project for analysis using external data gathering.\n"; |
44 cout<< " -tr Build project for analysis using output to trace.\n"; |
46 cout<< " -me Build project for analysis using monitored external\n"; |
45 cout<< " -lf Build project for analysis using logging to file.\n"; |
47 cout<< " data gathering.\n"; |
|
48 cout<< " -mi Build project for analysis using monitored internal\n"; |
|
49 cout<< " data gathering.\n"; |
|
50 cout<< " abld... Use SBS v.1 build system with defined build command,\n"; |
46 cout<< " abld... Use SBS v.1 build system with defined build command,\n"; |
51 cout<< " which includes supported platform and build type.\n"; |
47 cout<< " which includes supported platform and build type.\n"; |
52 cout<< " sbs... Use SBS v.2 (Raptor) build system with defined sbs build\n"; |
48 cout<< " sbs... Use SBS v.2 (Raptor) build system with defined sbs build\n"; |
53 cout<< " command, which includes supported platform and build type.\n"; |
49 cout<< " command, which includes supported platform and build type.\n"; |
54 cout<< " -a Analyze report file.\n"; |
50 cout<< " -a Analyze report file.\n"; |
61 cout<< "Optional parameters:\n"; |
57 cout<< "Optional parameters:\n"; |
62 cout<< " -acs size Specifies the call stack size gathered when memory\n"; |
58 cout<< " -acs size Specifies the call stack size gathered when memory\n"; |
63 cout<< " is allocated. Size can be between 0-256.\n"; |
59 cout<< " is allocated. Size can be between 0-256.\n"; |
64 cout<< " -fcs size Specifies the call stack size gathered when memory is freed.\n"; |
60 cout<< " -fcs size Specifies the call stack size gathered when memory is freed.\n"; |
65 cout<< " Size can be between 0-256.\n"; |
61 cout<< " Size can be between 0-256.\n"; |
66 cout<< " -f data file Specifies the filename for monitored internal data gathering\n"; |
62 cout<< " -f data file Specifies the filename for logging to file.\n"; |
67 cout<< " (50 chars max). Cannot contain path.\n"; |
63 cout<< " (50 chars max). Cannot contain path.\n"; |
|
64 cout<< " -fp file path Specifies the path of log file.\n"; |
|
65 cout<< " (in format <driveLetter>:\\<dir1>\\<dir2>\\...\\<dirN>\\)\n"; |
68 cout<< " output-file Specifies the results data file name.\n"; |
66 cout<< " output-file Specifies the results data file name.\n"; |
69 cout<< " -l Logging level of analyze report(0,1,2,3), default 3.\n"; |
67 cout<< " -l Logging level of analyze report(0,1,2,3), default 3.\n"; |
70 cout<< " -s symbol-file Specifies rom/rofs symbol file(s) to be used in analyze.\n"; |
68 cout<< " -s symbol-file Specifies rom/rofs symbol file(s) to be used in analyze.\n"; |
71 cout<< " Multiple -s options can be given.\n"; |
69 cout<< " Multiple -s options can be given.\n"; |
72 cout<< " -nobuild Instruments the project.\n"; |
70 cout<< " -nobuild Instruments the project.\n"; |
123 //80cout<< "12345678901234567890123456789012345678901234567890123456789012345678901234567890"; |
121 //80cout<< "12345678901234567890123456789012345678901234567890123456789012345678901234567890"; |
124 cout<< endl; |
122 cout<< endl; |
125 cout<< "Building syntax examples:" << endl; |
123 cout<< "Building syntax examples:" << endl; |
126 cout<< "Cmd Description" << endl; |
124 cout<< "Cmd Description" << endl; |
127 |
125 |
128 cout<< "atool -e abld build armv5 udeb" << endl; |
126 cout<< "atool -tr abld build armv5 udeb" << endl; |
129 cout<< " Hooks every component from bld.inf. Using external data gathering," << endl; |
127 cout<< " Hooks every component from bld.inf. Using output to trace," << endl; |
130 cout<< " udeb build type and armv5 platform." << endl; |
128 cout<< " udeb build type and armv5 platform." << endl; |
131 |
129 |
132 cout<< "atool -mi -acs 5 sbs -c winscw_udeb" << endl; |
130 cout<< "atool -lf -acs 5 sbs -c winscw_udeb" << endl; |
133 cout<< " Hooks every component from bld.inf. Using Symbian Build System v.2" << endl; |
131 cout<< " Hooks every component from bld.inf. Using Symbian Build System v.2" << endl; |
134 cout<< " Using monitored internal data gathering, call stack size of 5" << endl; |
132 cout<< " Using loging to data file, call stack size of 5" << endl; |
135 cout<< " in allocations, udeb build type and winscw platform." << endl; |
133 cout<< " in allocations, udeb build type and winscw platform." << endl; |
136 |
134 |
137 cout<< "atool -me abld build armv5 udeb foobar" << endl; |
135 cout<< "atool -tr abld build armv5 udeb foobar" << endl; |
138 cout<< " Hooks only foobar.mmp component from bld.inf. Using monitored" << endl; |
136 cout<< " Hooks only foobar.mmp component from bld.inf. Using " << endl; |
139 cout<< " external data gathering, udeb build type and armv5 platform." << endl; |
137 cout<< " output to trace, udeb build type and armv5 platform." << endl; |
140 |
138 |
141 cout<< "atool -e -acs 0 -fcs 0 abld build armv5.default udeb" << endl; |
139 cout<< "atool -lf -acs 0 -fcs 0 abld build armv5.default udeb" << endl; |
142 cout<< " Hooks every component from bld.inf. Using default binary variant," << endl; |
140 cout<< " Hooks every component from bld.inf. Using default binary variant," << endl; |
143 cout<< " external data gathering, 0 sized callstacks in allocation(s)/free(s)," << endl; |
141 cout<< " output to trace, 0 sized callstacks in allocation(s)/free(s)," << endl; |
144 cout<< " udeb build type and armv5 platform." << endl; |
142 cout<< " udeb build type and armv5 platform." << endl; |
145 |
143 |
146 cout<< "atool -e sbs -b bld.inf -c armv5_udeb" << endl; |
144 cout<< "atool -tr sbs -b bld.inf -c armv5_udeb" << endl; |
147 cout<< " Hooks every component from bld.inf. Using Symbian Build System v.2" << endl; |
145 cout<< " Hooks every component from bld.inf. Using Symbian Build System v.2" << endl; |
148 cout<< " , external data gathering, udeb build type and armv5 platform." << endl; |
146 cout<< " , output to trace, udeb build type and armv5 platform." << endl; |
149 |
147 |
150 cout<< "atool -me sbs -s system.xml --config=winscw_udeb" << endl; |
148 cout<< "atool -tr sbs -s system.xml --config=winscw_udeb" << endl; |
151 cout<< " Hooks every layer defined in system.xml system model. Using Symbian Build" << endl; |
149 cout<< " Hooks every layer defined in system.xml system model. Using Symbian Build" << endl; |
152 cout<< " System v.2, external data gathering, udeb build type and winscw platform." << endl; |
150 cout<< " System v.2, output to trace, udeb build type and winscw platform." << endl; |
153 |
151 |
154 cout<< endl; |
152 cout<< endl; |
155 cout<< "Instrumenting syntax examples:" << endl; |
153 cout<< "Instrumenting syntax examples:" << endl; |
156 cout<< "Cmd Description" << endl; |
154 cout<< "Cmd Description" << endl; |
157 cout<< "atool -e -nobuild abld build winscw udeb" << endl; |
155 cout<< "atool -tr -nobuild abld build winscw udeb" << endl; |
158 cout<< " Instruments every component from bld.inf. Using external data gathering,"<<endl; |
156 cout<< " Instruments every component from bld.inf. Using output to trace,"<<endl; |
159 cout<< " udeb build target and winscw platform." << endl; |
157 cout<< " udeb build target and winscw platform." << endl; |
160 cout<< " After project is instrumented, it needs to compiled using same platform and" << endl; |
158 cout<< " After project is instrumented, it needs to compiled using same platform and" << endl; |
161 cout<< " build type as given to instrumenting. Use -c parameter to remove changes." << endl; |
159 cout<< " build type as given to instrumenting. Use -c parameter to remove changes." << endl; |
162 |
160 |
163 cout<< endl; |
161 cout<< endl; |