AllocationInfo

public class AllocationInfo
extends Object implements IStackTraceInfo

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


Holds an Allocation information.

Summary

Nested classes

class AllocationInfo.AllocationSorter

 

Public methods

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

Returns true if the given filter matches case insensitively (according to the given locale) this allocation info.

int getAllocNumber()

Returns the allocation number.

String getAllocatedClass()

Returns the name of the allocated class.

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

Returns the size of the allocation.

StackTraceElement[] getStackTrace()

Returns the stack trace.

short getThreadId()

Returns the id of the thread that performed the allocation.

Public methods

allocatedClassMatches

public boolean allocatedClassMatches (String pattern, 
                Locale locale)

Parameters
pattern String

locale Locale

Returns
boolean

compareTo

public int compareTo (AllocationInfo otherAlloc)

Parameters
otherAlloc AllocationInfo

Returns
int

filter

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

Returns true if the given filter matches case insensitively (according to the given locale) this allocation info.

Parameters
filter String

fullTrace boolean

locale Locale

Returns
boolean

getAllocNumber

public int getAllocNumber ()

Returns the allocation number. Allocations are numbered as they happen with the most recent one having the highest number

Returns
int

getAllocatedClass

public String getAllocatedClass ()

Returns the name of the allocated class.

Returns
String

getAllocationSite

public String getAllocationSite ()

Returns
String

getFirstTraceClassName

public String getFirstTraceClassName ()

Returns
String

getFirstTraceMethodName

public String getFirstTraceMethodName ()

Returns
String

getMatchingStackFrames

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

Parameters
filter String

fullTrace boolean

locale Locale

Returns

getSize

public int getSize ()

Returns the size of the allocation.

Returns
int

getStackTrace

public StackTraceElement[] getStackTrace ()

Returns the stack trace. This can be null.

Returns
StackTraceElement[]

getThreadId

public short getThreadId ()

Returns the id of the thread that performed the allocation.

Returns
short