PerfettoPullerMetricCollector
public
class
PerfettoPullerMetricCollector
extends FilePullerDeviceMetricCollector
| java.lang.Object | |||
| ↳ | com.android.tradefed.device.metric.BaseDeviceMetricCollector | ||
| ↳ | com.android.tradefed.device.metric.FilePullerDeviceMetricCollector | ||
| ↳ | com.android.tradefed.device.metric.PerfettoPullerMetricCollector | ||
이 클래스는 지원 중단되었습니다.
대신 PerfettoFilePullerCollector 및 ERROR(/PerfettoTracePostProcessor)를 사용하세요.
기기에서 perfetto 파일을 가져오고 여기에서 측정항목을 수집할 수 있는 FilePullerDeviceMetricCollector의 기본 구현 원시 트레이스 파일을 Perfetto 측정항목 파일로 변환하는 데도 사용됩니다.
요약
공개 생성자 | |
|---|---|
PerfettoPullerMetricCollector()
|
|
공개 메서드 | |
|---|---|
void
|
processMetricDirectory(String key, File metricDirectory, DeviceMetricData runData)
메서드 구현은 디렉터리를 로깅하고 |
void
|
processMetricFile(String key, File metricFile, DeviceMetricData data)
추가 측정항목의 perfetto 트레이스 파일을 처리하고 최종 측정항목에 추가합니다. |
보호된 메서드 | |
|---|---|
File
|
retrieveFile(ITestDevice device, String remoteFilePath, int userId)
기기의 지정된 경로에서 파일을 가져옵니다. |
공개 생성자
PerfettoPullerMetricCollector
public PerfettoPullerMetricCollector ()
공개 메서드
processMetricDirectory
public void processMetricDirectory (String key,
File metricDirectory,
DeviceMetricData runData)메서드 구현은 디렉터리를 로깅하고 DeviceMetricData에 배치할 측정항목을 파싱할 수 있어야 합니다.
| 매개변수 | |
|---|---|
key |
String: 가져온 디렉터리와 연결된 옵션 키입니다. |
metricDirectory |
File: 옵션 키와 일치하는 기기에서 가져온 ERROR(/File)입니다. |
runData |
DeviceMetricData: 측정항목을 저장할 수 있는 DeviceMetricData입니다. |
processMetricFile
public void processMetricFile (String key,
File metricFile,
DeviceMetricData data)추가 측정항목의 perfetto 트레이스 파일을 처리하고 최종 측정항목에 추가합니다. 압축이 사용 설정된 경우 처리할 perfetto 파일을 압축 해제합니다.
| 매개변수 | |
|---|---|
key |
String: 기기에서 가져온 파일과 연결된 옵션 키입니다. |
metricFile |
File: 옵션 키와 일치하는 기기에서 가져온 ERROR(/File)입니다. |
data |
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 |
|