액티브트레이스

public class ActiveTrace
extends Object

java.lang.Object
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)

추적을 시작하고 추적의 메타데이터를 보고합니다.

필드

TRACE_KEY

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

finalize추적

public File finalizeTracing ()

최종 추적 파일을 보고하고 필요에 따라 리소스를 정리합니다.

보고
File

isMainTradefed프로세스

public boolean isMainTradefedProcess ()

보고
boolean

보고추적이벤트

public void reportTraceEvent (String categories, 
                String name, 
                PerfettoTrace.TrackEvent.Type type)

매개변수
categories String

name String

type PerfettoTrace.TrackEvent.Type

보고추적이벤트

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