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()
List<String> 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

getAllocatedClass

public String getAllocatedClass ()

返回分配的类的名称。

返回
String

getAllocationSite

public String getAllocationSite ()

返回
String

getFirstTraceClassName

public String getFirstTraceClassName ()

返回
String

getFirstTraceMethodName

public String getFirstTraceMethodName ()

返回
String

getMatchingStackFrames

public List<String> getMatchingStackFrames (String filter, 
                boolean fullTrace, 
                Locale locale)

参数
filter String

fullTrace boolean

locale Locale

返回
List<String>

getSize

public int getSize ()

返回分配的大小。

返回
int

getStackTrace

public StackTraceElement[] getStackTrace ()

返回堆栈轨迹。此值可以为 null

返回
StackTraceElement[]

getThreadId

public short getThreadId ()

返回执行分配的线程的 ID。

返回
short