聚合後處理器

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

public  processRunMetricsAndLogs ( rawMetrics, 
                 runLogs)

實施此方法以便從現有指標和日誌生成一組新指標。只應返回新生成的指標,並具有唯一的鍵名(不允許與現有鍵衝突)。

參數
rawMetrics :可用於運行的原始指標集。

runLogs :測試運行的日誌文件集。

退貨
從運行指標中新生成的一組指標。

processTestMetricsAndLogs

public  processTestMetricsAndLogs (TestDescription testDescription, 
                 testMetrics, 
                 testLogs)

實施此方法以發布每個測試的流程指標和日誌。只應返回新生成的指標,並具有唯一的鍵名(不允許與現有鍵衝突)。

參數
testDescription TestDescription :描述測試的 TestDescription 對象。

testMetrics :來自測試的一組指標。

testLogs :測試期間記錄的文件集。

退貨
來自測試指標的一組新生成的指標。