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

過濾器

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  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