AllocationInfo

public class AllocationInfo
extends Object implements IStackTraceInfo

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


Menyimpan informasi Alokasi.

Ringkasan

Class bertingkat

class AllocationInfo.AllocationSorter

 

Metode publik

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

Menampilkan benar (true) jika filter yang diberikan cocok tanpa membedakan huruf besar/kecil (sesuai dengan lokalitas yang diberikan) info alokasi ini.

int getAllocNumber()

Menampilkan nomor alokasi.

String getAllocatedClass()

Menampilkan nama class yang dialokasikan.

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

Menampilkan ukuran alokasi.

StackTraceElement[] getStackTrace()

Menampilkan stack trace.

short getThreadId()

Menampilkan ID thread yang melakukan alokasi.

Metode publik

allocatedClassMatches

public boolean allocatedClassMatches (String pattern, 
                Locale locale)

Parameter
pattern String

locale Locale

Hasil
boolean

compareTo

public int compareTo (AllocationInfo otherAlloc)

Parameter
otherAlloc AllocationInfo

Hasil
int

filter

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

Menampilkan benar (true) jika filter yang diberikan cocok tanpa membedakan huruf besar/kecil (sesuai dengan lokalitas yang diberikan) info alokasi ini.

Parameter
filter String

fullTrace boolean

locale Locale

Hasil
boolean

getAllocNumber

public int getAllocNumber ()

Menampilkan nomor alokasi. Alokasi diberi nomor saat terjadi dengan alokasi terbaru memiliki nomor tertinggi

Hasil
int

getAllocatedClass

public String getAllocatedClass ()

Menampilkan nama class yang dialokasikan.

Hasil
String

getAllocationSite

public String getAllocationSite ()

Hasil
String

getFirstTraceClassName

public String getFirstTraceClassName ()

Hasil
String

getFirstTraceMethodName

public String getFirstTraceMethodName ()

Hasil
String

getMatchingStackFrames

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

Parameter
filter String

fullTrace boolean

locale Locale

Hasil

getSize

public int getSize ()

Menampilkan ukuran alokasi.

Hasil
int

getStackTrace

public StackTraceElement[] getStackTrace ()

Menampilkan stack trace. Ini dapat berupa null.

Hasil
StackTraceElement[]

getThreadId

public short getThreadId ()

Menampilkan ID thread yang melakukan alokasi.

Hasil
short