聚合后处理器
public class AggregatePostProcessor
extends BasePostProcessor
对象 | ||
↳ | com.android.tradefed.postprocessor.BasePostProcessor | |
↳ | com.android.tradefed.postprocessor.AggregatePostProcessor |
一个度量聚合器,它为在多次迭代测试运行期间收集的数字度量提供最小值、最大值、平均值、方差、标准偏差、总计、计数和可选的百分位数,将它们视为双精度值。非数字度量将被忽略。混合有数字和非数字值的指标也将被忽略。
请注意,仅当指标具有全数字值时才会出现计数;否则,它将与所有其他统计数据一起缺席。
它从单个字符串解析指标,因为当前指标是通过这种方式传递的。
概括
公共构造函数 | |
---|---|
AggregatePostProcessor () |
公共方法 | |
---|---|
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 AggregatePostProcessor ()
公共方法
processRunMetricsAndLogs
publicprocessRunMetricsAndLogs ( rawMetrics, runLogs)
实施此方法以从现有指标和日志生成一组新指标。只应返回新生成的指标,并具有唯一的键名(不允许与现有键发生冲突)。
参数 | |
---|---|
rawMetrics | |
runLogs |
退货 | |
---|---|
从运行指标中新生成的指标集。 |
processTestMetricsAndLogs
publicprocessTestMetricsAndLogs (TestDescription testDescription, testMetrics, testLogs)
实施此方法以发布每个测试的流程指标和日志。只应返回新生成的指标,并具有唯一的键名(不允许与现有键发生冲突)。
参数 | |
---|---|
testDescription | TestDescription :描述测试的TestDescription对象。 |
testMetrics | |
testLogs |
退货 | |
---|---|
从测试指标中新生成的指标集。 |