getMetrics
Class: slmetric.Engine
Package: slmetric
(To be removed) Access model metric data
slmetric.Engine.getMetrics
will be removed in a future release.
For size, architecture, and complexity metrics, use the metric.Engine
API
and the model maintainability metrics instead. For more information, see metric.Engine
and Collect Model Maintainability Metrics Programmatically.
Syntax
Description
Access model metric data from the specified model metric engine. When you call execute
, the metric engine collects the metric data. The
returned metric data is based on defined architectural components. The components are
these Simulink objects:
Model
Subsystem block
Chart
MATLAB Function block
Protected model
returns metric data for all metrics that the
metric engine executed.Results
= getMetrics(metric_engine
)
returns metric data for the specified metric identifiers.Results
= getMetrics(metric_engine
,MetricIDs
)
returns metric data for the specified metric identifiers and specifying how to
aggregate data.Results
= getMetrics(metric_engine
,MetricIDs
,'AggregationDepth'
,ad
)