Main Content

Code Profiling in Polyspace Platform User Interface

Calculate C/C++ source code coverage with respect to existing tests, calculate execution times

You can calculate C/C++ code coverage, execution time, or memory use in the Polyspace Platform user interface. When you execute tests with coverage, execution profiling or memory profiling enabled, along with test results, you can see how much of your code was covered by the tests, or find bottlenecks in execution time or stack usage.

Polyspace Options

expand all

Folders to profile (-limit-instrumentation-to)Specify folders containing sources to be instrumented for code profiling (Since R2023b)
Folders to ignore (-ignore-dir)Specify folders to ignore during instrumentation (Since R2023b)
Files to ignore (-ignore-file)Specify files to exclude from source code instrumentation (Since R2023b)
Additional optionsSpecify additional instrumentation options (Since R2023b)
Type of profilingProfile one of code coverage, execution time, or memory use (Since R2023b)
Coverage metrics (-cov-metric-level)Specify level of code coverage metric calculation (Since R2023b)
Enable compact mode for coverage calculation (-compact)Reduce the amount of memory required to run test executable (Since R2023b)
Enable relational boundary coverage (-cov-relbound)Specify whether to calculate relational boundary coverage (Since R2023b)
Absolute tolerance (-cov-relbound-abs-tol)Specify absolute tolerance for relational boundary coverage (Since R2023b)
Relative tolerance (-cov-relbound-rel-tol)Specify relative tolerance for relational boundary coverage (Since R2023b)
Functions to ignore (-ignore-fcn)Specify functions to exclude from source code instrumentation (Since R2023b)
Function Call to ignore (-ignore-fcn-call)Specify function calls to exclude from source code instrumentation (Since R2023b)

MATLAB Functions

pstest.exportToPolyspaceProfilingResults(MATLAB Function) Export coverage results from Simulink Coverage, Simulink Test, or MATLAB Test to Polyspace Test

Topics

Code Coverage

Execution Time and Memory Use

Code Sanitization

Related Information