聚合後處理器

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 ()

公共方法

進程運行指標和日誌

public  processRunMetricsAndLogs ( rawMetrics, 
                 runLogs)

實現此方法是為了從現有指標和日誌中產生一組新指標。僅應返回新生成的指標,並具有唯一的鍵名稱(不允許與現有鍵發生衝突)。

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

runLogs :測試運行的日誌檔案集。

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

流程測試指標和日誌

public  processTestMetricsAndLogs (TestDescription testDescription, 
                 testMetrics, 
                 testLogs)

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

參數
testDescription TestDescription :描述測試的 TestDescription 物件。

testMetrics :測試中的一組指標。

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

退貨
從測試指標新產生的一組指標。