Main Content

Review Code Profiling Results

Review code coverage, execution time or memory use metrics

After test execution with code profiling enabled, you can review code profiling results in the Polyspace Platform user interface. The results consist of one of these metrics:

  • Code coverage — How much of your code is covered by existing tests.

  • Code execution time — The time each function takes to execute.

  • Memory use — Stack memory used by each function.

  • Code sanitizer results – Run-time errors during test execution.

For instance, if you computed code coverage with respect to existing tests, you can see a summary of coverage results on a dashboard or drill down to coverage of files, functions, decisions, and conditions in a list view. You can justify missing coverage manually or use other mechanisms such as coverage filters or unreachable code information.

Polyspace Results

Statement CoveragePercentage of statements that current test cases cover (Since R2023b)
Condition CoveragePercentage of condition outcomes that current test cases evaluate (Since R2023b)
Decision CoveragePercentage of decision outcomes that current test cases cover (Since R2023b)
Modified Condition/Decision Coverage (MCDC) CoveragePercentage of conditions that current test cases evaluate for independent impact on outcome (Since R2023b)
Cyclomatic ComplexityNumber of linearly independent paths in function body (Since R2023b)
Relational Boundary CoveragePercentage of relational operations that are tested by current test cases (Since R2023b)
Function CoveragePercentage of unique functions that current test cases execute at least once (Since R2023b)
Function Call CoveragePercentage of function calls that current test cases execute at least once (Since R2023b)
Function Exit CoveragePercentage of function exit points that current test cases reach (Since R2023b)
Execution TimeMeasures execution time and number of calls for various callable entities of your code (Since R2023b)
Memory UseMeasures stack memory usage of various callable entities of your code (Since R2023b)

Tools

Polyspace Platform SettingsSettings for Polyspace Platform user interface (Since R2023b)

Topics

Open Results

Review Code Coverage Results

Review Execution Time Results

Review Memory Use Results

Review Code Sanitizer Results

Polyspace Access Workflows

Related Information