metric.Engine
Description
A metric.Engine
object represents the metric engine that you
can execute with the execute
object function to collect metric data on your
design. Use the getMetrics
function to access the metric data and return an array of metric.Result
objects. Use generateReport
to access a detailed report of metrics
collected. Use design cost metric data to estimate the cost of implementing your design in
embedded C code. For additional metrics, see Model and Code Testing Metrics (Simulink Check).
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
deleteMetrics | Delete metric results for model testing artifacts |
execute | Collect metric data |
generateReport | Generate report file that contains metric results |
getArtifactErrors | Return errors that occurred during metric execution |
getArtifactIssues | Return issues that occur during artifact analysis |
getAvailableMetricIds | Return metric identifiers for available metrics |
getMetrics | Access metric data for model testing artifacts |
openArtifact | Open testing artifact traced from metric result |
updateArtifacts | Update trace information for pending artifact changes in project |
Examples
Version History
Introduced in R2022a
See Also
getAvailableMetricIds
| execute
| generateReport
| updateArtifacts
| Design Cost Model Metrics | Model Testing Metrics (Simulink Check)