度量文件後處理器
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 ()
公共方法
processRunMetricsAndLogs
publicprocessRunMetricsAndLogs ( rawMetrics, runLogs)
實施此方法以從現有指標和日誌生成一組新指標。只應返回新生成的指標,並具有唯一的鍵名(不允許與現有鍵發生衝突)。
參數 | |
---|---|
rawMetrics | |
runLogs |
退貨 | |
---|---|
從運行指標中新生成的指標集。 |
processTestMetricsAndLogs
publicprocessTestMetricsAndLogs (TestDescription testDescription, testMetrics, testLogs)
實施此方法以發布每個測試的流程指標和日誌。只應返回新生成的指標,並具有唯一的鍵名(不允許與現有鍵發生衝突)。
參數 | |
---|---|
testDescription | TestDescription :描述測試的TestDescription對象。 |
testMetrics | |
testLogs |
退貨 | |
---|---|
從測試指標中新生成的指標集。 |