AllocationInfo

public class AllocationInfo
extends Object implements IStackTraceInfo

java.lang.Object
   ↳ com.android.tradefed.device.server.AllocationInfo


할당 정보를 보유합니다.

요약

중첩된 클래스

class AllocationInfo.AllocationSorter

 

공개 메서드

boolean allocatedClassMatches(String pattern, Locale locale)
int compareTo(AllocationInfo otherAlloc)
boolean filter(String filter, boolean fullTrace, Locale locale)

지정된 필터가 지정된 언어에 따라 이 할당 정보와 대소문자를 구분하지 않고 일치하면 true를 반환합니다.

int getAllocNumber()

할당 번호를 반환합니다.

String getAllocatedClass()

할당된 클래스의 이름을 반환합니다.

String getAllocationSite()
String getFirstTraceClassName()
String getFirstTraceMethodName()
getMatchingStackFrames(String filter, boolean fullTrace, Locale locale)
int getSize()

할당 크기를 반환합니다.

StackTraceElement[] getStackTrace()

스택 트레이스를 반환합니다.

short getThreadId()

할당을 실행한 스레드의 ID를 반환합니다.

공개 메서드

allocatedClassMatches

public boolean allocatedClassMatches (String pattern, 
                Locale locale)

매개변수
pattern String

locale Locale

반환 값
boolean

compareTo

public int compareTo (AllocationInfo otherAlloc)

매개변수
otherAlloc AllocationInfo

반환 값
int

filter

public boolean filter (String filter, 
                boolean fullTrace, 
                Locale locale)

지정된 필터가 지정된 언어에 따라 이 할당 정보와 대소문자를 구분하지 않고 일치하면 true를 반환합니다.

매개변수
filter String

fullTrace boolean

locale Locale

반환 값
boolean

getAllocNumber

public int getAllocNumber ()

할당 번호를 반환합니다. 할당은 발생한 순서대로 번호가 매겨지며 가장 최근 할당에 가장 높은 번호가 부여됩니다.

반환 값
int

allocatedClass

public String getAllocatedClass ()

할당된 클래스의 이름을 반환합니다.

반환 값
String

getAllocationSite

public String getAllocationSite ()

반환 값
String

getFirstTraceClassName

public String getFirstTraceClassName ()

반환 값
String

getFirstTraceMethodName

public String getFirstTraceMethodName ()

반환 값
String

getMatchingStackFrames

public  getMatchingStackFrames (String filter, 
                boolean fullTrace, 
                Locale locale)

매개변수
filter String

fullTrace boolean

locale Locale

반환 값

getSize

public int getSize ()

할당 크기를 반환합니다.

반환 값
int

getStackTrace

public StackTraceElement[] getStackTrace ()

스택 트레이스를 반환합니다. null일 수 있습니다.

반환 값
StackTraceElement[]

getThreadId

public short getThreadId ()

할당을 실행한 스레드의 ID를 반환합니다.

반환 값
short