PerfettoFilePullerCollector

public class PerfettoFilePullerCollector
extends FilePullerDeviceMetricCollector

java.lang.Object
com.android.tradefed.device.metric.BaseDeviceMetricCollector
  com.android.tradefed.device.metric.FilePullerDeviceMetricCollector
    com.android.tradefed.device.metric.PerfettoFilePullerCollector


기기에서 perfetto 트레이스 파일을 가져와 선택적으로 압축하고 테스트 로그에 추가하는 수집기입니다.

요약

공개 생성자

PerfettoFilePullerCollector()

공개 메서드

void processMetricDirectory(String key, File metricDirectory, DeviceMetricData runData)

메서드를 구현하면 디렉터리를 로깅하고 에 배치할 측정항목을 파싱할 수 있습니다. DeviceMetricData

void processMetricFile(String key, File metricFile, DeviceMetricData data)

기기에서 가져온 perfetto 트레이스 파일(원시 또는 압축)을 가져와 테스트 로그에 추가합니다.

보호된 메서드

File retrieveFile(ITestDevice device, String remoteFilePath, int userId)

기기의 지정된 경로에서 파일을 가져옵니다.

공개 생성자

PerfettoFilePullerCollector

public PerfettoFilePullerCollector ()

공개 메서드

processMetricDirectory

public void processMetricDirectory (String key, 
                File metricDirectory, 
                DeviceMetricData runData)

메서드를 구현하면 디렉터리를 로깅하고 에 배치할 측정항목을 파싱할 수 있습니다. DeviceMetricData

매개변수
key String: 가져온 디렉터리와 연결된 옵션 키입니다.

metricDirectory File: 옵션 키와 일치하는 기기에서 가져온 File입니다.

runData DeviceMetricData: 측정항목을 저장할 수 있는 DeviceMetricData입니다.

processMetricFile

public void processMetricFile (String key, 
                File metricFile, 
                DeviceMetricData data)

기기에서 가져온 perfetto 트레이스 파일(원시 또는 압축)을 가져와 테스트 로그에 추가합니다.

매개변수
key String: 가져온 파일과 연결된 옵션 키입니다.

metricFile File: 옵션 키와 일치하는 기기에서 가져온 File입니다.

data DeviceMetricData: 측정항목을 저장할 수 있는 DeviceMetricData입니다.

보호된 메서드

retrieveFile

protected File retrieveFile (ITestDevice device, 
                String remoteFilePath, 
                int userId)

기기의 지정된 경로에서 파일을 가져옵니다. compress perfetto 옵션이 사용 설정된 경우 perfetto 파일의 압축된 콘텐츠를 가져옵니다.

매개변수
device ITestDevice: 파일이 있는 기기입니다.

remoteFilePath String: 기기의 위치입니다.

userId int: 가져올 사용자 ID입니다.

반환
File mCompressPerfetto 옵션 설정 여부에 따라 perfetto 파일의 압축 또는 압축 해제된 버전입니다.

생성 값
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException