metric.Engine
Collect metric data
Description
Use a metric.Engine
object represents the metric engine that
you can execute with the execute
object function to collect metric data.
Use getMetrics
to access the metric data and return an array of
metric.Result
objects. Use the metric data to assess the status and
quality of your design. Use the model testing metrics to analyze testing artifacts such as
requirements, test results, and coverage results. Use the model maintainability metrics to
analyze the maintainability and complexity of the design. For additional metrics, see Design Cost Model Metrics (Fixed-Point Designer).
Creation
Description
creates a
metric engine object that collects metric data on the current project.metric_engine
= metric.Engine()
opens the project metric_engine
= metric.Engine(projectPath
)projectPath
and creates a metric engine object that
collects metric data on the project.
Input Arguments
Properties
Object Functions
execute | Collect metric data |
generateReport | Generate report file containing metric results |
getArtifactErrors | Return errors that occurred during artifact tracing |
getAvailableMetricIds | Return metric identifiers for available metrics |
getMetrics | Access metric data |
openArtifact | Open traced artifact from metric result |
updateArtifacts | Update trace information for pending artifact changes in the project |
Examples
Version History
Introduced in R2020b