SimplePerfStatResultParser

public final class SimplePerfStatResultParser
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.SimplePerfStatResultParser


simpleperf の結果を解析するユーティリティ クラス。

テスト結果レシーバの実装時に役立ちます

関連項目:

概要

パブリック メソッド

static SimplePerfResult parseRawOutput(String output)

simpleperf 出力の複数行を解析するユーティリティ メソッド

static List<String> parseSingleLine(String line)

simpleperf の結果の 1 行を解析するユーティリティ メソッド

パブリック メソッド

parseRawOutput

public static SimplePerfResult parseRawOutput (String output)

simpleperf 出力の複数行を解析するユーティリティ メソッド

パラメータ
output String: 複数行の文字列

戻り値
SimplePerfResult simpleperf の結果情報を保持する SimplePerfResult オブジェクト

parseSingleLine

public static List<String> parseSingleLine (String line)

simpleperf の結果の 1 行を解析するユーティリティ メソッド

パラメータ
line String: simpleperf の結果の単一行

戻り値
List<String> 文字列のリストには情報が含まれています。長さが 0 の場合、解析された出力はありません。長さが 1 の場合は、合計時間です。長さが 3 の場合、指標(位置 0)、ベンチマーク(位置 1)、コメント(位置 2)が含まれます。