Main Content

Code Profiling

Calculate metrics such as code coverage, execution times, or memory usage

Code profiling involves calculating one of these metrics for your C/C++ source code:

  • Code coverage helps you determine whether your test cases adequately cover the execution paths of your code.

  • Execution time helps you identify functions and other callable entities that introduce bottlenecks in your code.

  • Memory use helps you identify functions or other callable entities that consume unexpected amount of stack memory.

You can perform code profiling in the Polyspace Platform user interface after specifying your compilation toolchain. Alternatively, if your tests are authored using the Polyspace® Test™ C/C++ xUnit API, you can perform code profiling in your own development environment using an existing toolchain setup.

Categories