SimplePerfStatResultParser

public final class SimplePerfStatResultParser
extends Object

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


simpleperf 결과를 구문 분석하는 유틸리티 클래스입니다.

테스트 결과 수신기를 구현할 때 유용해야 합니다.

또한보십시오:

요약

공개 메소드

static SimplePerfResult parseRawOutput (String output)

simpleperf 출력의 여러 줄을 구문 분석하는 유틸리티 방법

static parseSingleLine (String line)

simpleperf 결과의 한 줄을 구문 분석하는 유틸리티 방법

공개 메소드

ParsRawOutput

public static SimplePerfResult parseRawOutput (String output)

simpleperf 출력의 여러 줄을 구문 분석하는 유틸리티 방법

매개변수
output String : 여러 줄의 문자열

보고
SimplePerfResult simpleperf 결과 정보를 보유하는 SimplePerfResult 객체

파싱싱글라인

public static  parseSingleLine (String line)

simpleperf 결과의 한 줄을 구문 분석하는 유틸리티 방법

매개변수
line String : simpleperf 결과의 한 줄

보고
문자열 목록에는 정보가 포함되어 있습니다. 길이가 0이면 구문 분석된 출력이 없습니다. 길이가 1이면 총 시간입니다. 길이가 3이면 메트릭(위치 0), 벤치마크(위치 1) 및 설명(위치 2)이 포함됩니다.