Question:
How to generate Instrumented Profiling Report using CCES:
Answer:
The -p compiler switch enables instrumented profiling in the compiler when compiling C/C++ source into assembly.
Enable the -p switch in the IDE via Project > Properties > C/C++ Build > Settings > Tool Settings > Compiler > Processor > Enable compiler instrumented profiling
The input data file will be created after debugging and running the application.
Note:
Do not rebuild the application before generating the report, because the IDE raises an error if the data file is older than the executable file.
There are two methods to generate Instrumented profiling reports: the CCES IDE and the command-line tool (Reporter.exe).
To generate an instrumented profiling report from CCES IDE:
1.Open the Wizard
Go to File > New > Code Analysis Report.
2.Select Profiling Type
Choose Instrumented profiling.
Click Next.
3. Select the Input and Output files
In DXE that produced the data file, brows the application executable file.
In Data file, brows the profiling (.prf) data file.
In Report document's output file name, enter the name of the new HTML report file.
4.Click Finish.
To generate the Code Coverage report and Heap Debugging report, refer to the CCES help documentation located in the following directory:
CrossCore® Embedded Studio <version> > Integrated Development Environment > Debugging Executable Files > Generating Code Analysis Reports
To generate an instrumented profiling report from the command line:
Reporter.exe is the command line utility used to generate reports for Instrumented Profiling.
Example:
<path-to-install>Reporter.exe -dxe Project.dxe -printer:ReporterInstrProf Project.prf -output report.html
Where:
-dxe - Specifies the Executable file.
-printer:<printer-name> <data file> - Specifies the report type to be generated and one or more input data files.
For Instrumented Profiling, use -printer:ReporterInstrProf.
For Code Coverage, use -printer:ReporterPGO.
For Heap Debugging, use -printer:ReporterHeap.
-output - Specifies the path of the generated report.