Main Content

Generate Reports from C/C++ Code Profiling Results

Using Polyspace® Test™, you can export C/C++ code coverage, execution time, or memory use results to HTML reports for archiving and certification. This topic describes how to generate a report from code profiling results in the Polyspace Platform user interface or at the command line.

Generate Report in User Interface

To generate a report from your code profiling results:

  1. Open the code profiling results in the Polyspace Platform user interface.

    For more information, see Open Polyspace Results in Polyspace Platform User Interface.

  2. On the Polyspace Platform toolstrip, select Report.

    If you are in the dashboard perspective that shows an overview of results and do not see the Report option on the Polyspace Platform toolstrip, select Review on the toolstrip to open the review perspective showing details of results.

  3. In the Generate HTML Report dialog box, specify options as required:

    • To customize the generated report, specify the path to a report options JSON file for the Options file setting. For more information on the report options file, see Customize Content and Style of Polyspace Test Reports.

    • Specify a folder to save the reports using the option Output folder.

  4. Select OK.

Generate Report at Command Line

Suppose your code profiling results (.psprof files) are in a folder <resultsFolder>. To generate an HTML report from the results, at the command line, enter the following:

polyspace-test -report -report-dir <reportFolder> -html <resultsFolder>
The generated HTML reports are stored in the folder <reportFolder>.

See Also

Topics