액티브 트레이스
public class ActiveTrace
extends Object
java.lang.객체 | |
↳ | com.android.tradefed.invoker.tracing.ActiveTrace |
활성 추적을 설명하고 관리하는 데 도움이 되는 기본 클래스입니다.
요약
필드 | |
---|---|
public static final String | TRACE_KEY
|
공개 생성자 | |
---|---|
ActiveTrace (long pid, long tid) | |
ActiveTrace (long pid, long tid, boolean mainProcess) 건설자. |
공개 방법 | |
---|---|
void | addSubprocessTrace (File subTrace) 상위 프로세스에 추가할 하위 프로세스의 추적 파일을 제공하십시오. |
File | finalizeTracing () 최종 추적 파일을 보고하고 필요에 따라 리소스를 정리합니다. |
boolean | isMainTradefedProcess () |
void | reportTraceEvent (String categories, String name, PerfettoTrace.TrackEvent.Type type) |
void | reportTraceEvent (String categories, String name, int threadId, String threadName, PerfettoTrace.TrackEvent.Type type) 추적의 시작/종료를 수행하는 매우 기본적인 이벤트 보고. |
long | reportingThreadId () 추적을 시작한 스레드의 스레드 ID입니다. |
void | startTracing (boolean isSubprocess) 추적을 시작하고 추적의 메타데이터를 보고합니다. |
필드
추적_키
public static final String TRACE_KEY
공개 생성자
액티브 트레이스
public ActiveTrace (long pid, long tid)
매개변수 | |
---|---|
pid | long |
tid | long |
액티브 트레이스
public ActiveTrace (long pid, long tid, boolean mainProcess)
건설자.
매개변수 | |
---|---|
pid | long : 현재 프로세스 ID |
tid | long : 현재 스레드 ID |
mainProcess | boolean |
공개 방법
addSubprocessTrace
public void addSubprocessTrace (File subTrace)
상위 프로세스에 추가할 하위 프로세스의 추적 파일을 제공하십시오.
매개변수 | |
---|---|
subTrace | File |
finalizeTracing
public File finalizeTracing ()
최종 추적 파일을 보고하고 필요에 따라 리소스를 정리합니다.
보고 | |
---|---|
File |
isMainTradefed프로세스
public boolean isMainTradefedProcess ()
보고 | |
---|---|
boolean |
reportTraceEvent
public void reportTraceEvent (String categories, String name, PerfettoTrace.TrackEvent.Type type)
매개변수 | |
---|---|
categories | String |
name | String |
type | PerfettoTrace.TrackEvent.Type |
reportTraceEvent
public void reportTraceEvent (String categories, String name, int threadId, String threadName, PerfettoTrace.TrackEvent.Type type)
추적의 시작/종료를 수행하는 매우 기본적인 이벤트 보고.
매개변수 | |
---|---|
categories | String : 이벤트와 관련된 카테고리 |
name | String : 이벤트 이름 |
threadId | int |
threadName | String |
type | PerfettoTrace.TrackEvent.Type : 보고되는 이벤트 유형 |
보고 스레드 ID
public long reportingThreadId ()
추적을 시작한 스레드의 스레드 ID입니다.
보고 | |
---|---|
long |
시작추적
public void startTracing (boolean isSubprocess)
추적을 시작하고 추적의 메타데이터를 보고합니다.
매개변수 | |
---|---|
isSubprocess | boolean |