Subsystem Depth Metric
Metric ID
Metric ID:
mathworks.metrics.SubSystemDepth
Description
Metric Type: Size
Model Advisor Check ID:
mathworks.metricchecks.SubSystemDepth
Use this metric to count the relative depth of all hierarchical children for a given subsystem or model starting from the given component, or root of analysis. Depth traversal analysis stops when it reaches a referenced model or a library. Depth is restarted with 0 for each of these components.
This metric is available with Simulink®
Check™. To collect data for this metric, use getMetrics
with the metric identifier,
mathworks.metrics.SubSystemDepth
.
The slmetric.metric.AggregationMode
property setting is
None
.
Computation Details
The metric:
Runs on library models.
Analyzes content in masked subsystems.
If specified, analyzes the content of library-linked blocks or referenced models.
Collection
To collect results for this metric using the Model Advisor, run the check, Subsystem depth metric in By Task > Model Metrics > Count Metrics. The Model Advisor check displays the depth of the subsystems in the model. The check does not analyze referenced models or return aggregated results.
Results
For this metric, instances of slmetric.metric.Result
provide the
following results:
Value
: subsystem depth for each component in the hierarchy.AggregatedValue
: Not applicable.Measures
: Not applicable.