metric.Engine
收集度量结果
说明
metric.Engine
对象表示度量引擎,您可以使用 execute
对象函数执行该引擎来收集度量结果。使用 getMetrics
访问度量结果,并返回由 metric.Result
对象组成的数组。使用度量结果来评估设计的状态和质量。使用模型可维护性度量来分析设计的可维护性和复杂性。使用模型和代码测试度量来分析需求、测试结果和覆盖率结果等工件。有关其他度量,请参见 Design Cost Model Metrics (Fixed-Point Designer)。
创建对象
描述
创建一个度量引擎对象,用于收集当前工程的度量结果。metric_engine
= metric.Engine()
打开工程 metric_engine
= metric.Engine(projectPath
)projectPath
,并创建一个用于收集工程的度量结果的度量引擎对象。
输入参量
属性
对象函数
execute | Collect metric results |
generateReport | Generate report file containing metric results |
getArtifactErrors | Return errors that occurred during artifact tracing |
getArtifactIssues | Return issues that occur during artifact analysis |
getAvailableMetricIds | Return metric identifiers for available metrics |
getMetrics | Access metric results |
openArtifact | Open traced artifact from metric result |
updateArtifacts | Update trace information for pending artifact changes in the project |
示例
版本历史记录
在 R2020b 中推出