度量文件后处理器

public class MetricFilePostProcessor
extends BasePostProcessor

对象
com.android.tradefed.postprocessor.BasePostProcessor
com.android.tradefed.postprocessor.MetricFilePostProcessor


用于上传测试和运行级别期间收集的指标日志文件。使用“aggregate-similar-tests”选项在测试运行级别聚合类似的测试指标并将其写入日志文件。测试仅在迭代次数上不同或具有相同名称的测试被认为是相似的测试。这将只能访问原始指标。

概括

公共构造函数

MetricFilePostProcessor ()
MetricFilePostProcessor ( MetricUtility metricUtil)

公共方法

processRunMetricsAndLogs ( rawMetrics, runLogs) processRunMetricsAndLogs ( rawMetrics, runLogs) processRunMetricsAndLogs ( rawMetrics, runLogs)

实施此方法以从现有指标和日志生成一组新指标。

processTestMetricsAndLogs (TestDescription testDescription, testMetrics, testLogs) processTestMetricsAndLogs (TestDescription testDescription, testMetrics, testLogs) processTestMetricsAndLogs (TestDescription testDescription, testMetrics, testLogs)

实施此方法以发布每个测试的流程指标和日志。

公共构造函数

度量文件后处理器

public MetricFilePostProcessor ()

度量文件后处理器

public MetricFilePostProcessor (MetricUtility metricUtil)

参数
metricUtil MetricUtility

公共方法

processRunMetricsAndLogs

public  processRunMetricsAndLogs ( rawMetrics, 
                 runLogs)

实施此方法以从现有指标和日志生成一组新指标。只应返回新生成的指标,并具有唯一的键名(不允许与现有键发生冲突)。

参数
rawMetrics :可用于运行的原始指标集。

runLogs :测试运行的日志文件集。

退货
从运行指标中新生成的指标集。

processTestMetricsAndLogs

public  processTestMetricsAndLogs (TestDescription testDescription, 
                 testMetrics, 
                 testLogs)

实施此方法以发布每个测试的流程指标和日志。只应返回新生成的指标,并具有唯一的键名(不允许与现有键发生冲突)。

参数
testDescription TestDescription :描述测试的TestDescription对象。

testMetrics :测试中的一组指标。

testLogs :测试期间记录的文件集。

退货
从测试指标中新生成的指标集。