public class AllocationInfo extends java.lang.Object implements IStackTraceInfo
Modifier and Type | Class and Description |
---|---|
static class |
AllocationInfo.AllocationSorter |
static class |
AllocationInfo.SortMode |
Modifier and Type | Method and Description |
---|---|
boolean |
allocatedClassMatches(java.lang.String pattern,
java.util.Locale locale) |
int |
compareTo(AllocationInfo otherAlloc) |
boolean |
filter(java.lang.String filter,
boolean fullTrace,
java.util.Locale locale)
Returns true if the given filter matches case insensitively (according to
the given locale) this allocation info.
|
java.lang.String |
getAllocatedClass()
Returns the name of the allocated class.
|
java.lang.String |
getAllocationSite() |
int |
getAllocNumber()
Returns the allocation number.
|
java.lang.String |
getFirstTraceClassName() |
java.lang.String |
getFirstTraceMethodName() |
java.util.List<java.lang.String> |
getMatchingStackFrames(java.lang.String filter,
boolean fullTrace,
java.util.Locale locale) |
int |
getSize()
Returns the size of the allocation.
|
java.lang.StackTraceElement[] |
getStackTrace()
Returns the stack trace.
|
short |
getThreadId()
Returns the id of the thread that performed the allocation.
|
public int getAllocNumber()
public java.lang.String getAllocatedClass()
public int getSize()
public short getThreadId()
public java.lang.StackTraceElement[] getStackTrace()
IStackTraceInfo
null
.getStackTrace
in interface IStackTraceInfo
public int compareTo(AllocationInfo otherAlloc)
@Nullable public java.lang.String getAllocationSite()
public java.lang.String getFirstTraceClassName()
public java.lang.String getFirstTraceMethodName()
public boolean filter(java.lang.String filter, boolean fullTrace, java.util.Locale locale)
public boolean allocatedClassMatches(@NonNull java.lang.String pattern, @NonNull java.util.Locale locale)
@NonNull public java.util.List<java.lang.String> getMatchingStackFrames(@NonNull java.lang.String filter, boolean fullTrace, @NonNull java.util.Locale locale)