
Compute And Report Software Metrics with CodeSonar®
CodeSonar´s analysis engine computes and reports both custom metrics defined by users and built-in metrics shipped with the tool itself.- Metrics can be computed at various granularities such as analysis, compilation unit, file, procedure.
- The computation of those metrics is controlled by the user for each analysis run.
- Metrics values are reported in the CodeSonar Web GUI, which also allow to search and chart the metrics. They can also accessed programmatically through the API.
- For defining custom warning classes CodeSonar provides a straightforward mechanism which is based on metric values, so that a warning is issued whenever the value of a particular metric falls outside a specified range.
Built-In Metrics
CodeSonar shows metrics at function, file, and analysis granularity as the following table indicates.

HIS-Metrics
HIS (Herstellerinitiative Software, German for "OEM software initiative") was an automotive industry group consisting of Audi, BMW, DaimlerChrysler, Porsche, and Volkswagen which is now part of AUTOSAR.CodeSonar supports most of the HIS Software Metrics. For more information, please do not hesitate to contact us
Custom Metrics
For defining custom metrics the tool provides both a straightforward method for specifying derived metrics and a full API functionality for specifying metrics that based on other computations.- They can be enabled and disabled for each analysis by the user, and can be presented in the CodeSonar GUI as well as accessed through the API.
- Custom metrics can may also be used as basis for derived metrics, and for warning classes based on metric thresholds.
- activate /deactivate for each analysis by the user
- metrics are shown by the CodeSonar-GUI and are accessible via an API
- adapted metrics can be used as a foundation for derivative metrics



CodeSonar 4 for Embedded Systems
![[PDF]](icon-pdf-15x16.gif)
![[PDF]](icon-pdf-15x16.gif)
Development Testing
Defect Detection
Concurrency Checks
Security Checks
Software metrics
Automate the Verification of Your Code
CodeSonar for Java
Compliant to standards
DO-178
ISO 26262
FDA-standards
MISRA
CWE- and BSI-regulations
"Power of Ten" and JPL-regulations
IEC 62443
How Static Code Analysis works
Workflow-Features
Binary-Analysis
Visual-Taint-Analysis
Whitepapers
References
University program
Case studies
![[PDF]](icon-pdf-15x16.gif)