聚合后处理器
public class AggregatePostProcessor
extends BasePostProcessor
java.lang.Object | ||
↳ | 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 |
退货 | |
---|---|
来自测试指标的一组新生成的指标。 |